Binary | Hexadecimal | Decimal | |||
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 10000 |
0 1 2 3 4 5 6 7 8 9 A B C D E F 10 |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
5 REM THIS IS A PROGRAM IN BASIC 10 X = 2 20 Y = 2 30 SUM = X + Y 40 PRINT SUM 50 END |
/** This is a Java program */ public class HelloWorld { // main(). The starting point of all programs public static void main(String[] args) { int x; int y; int sum; sum = x + y; System.out.println("2 + 2 = " + sum); } } |