-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.txt
53 lines (38 loc) · 953 Bytes
/
code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h> to start c programmng
int main() {
/* printf() function to write Hello, World! */
printf( "Hello, World!" );
}
#include <stdio.h>
int main() {
int a;
int b;
a = 10;
b = 20;
printf( "Value of a = %d\n", a );
printf( "Value of b = %d\n", b );
}
Java syntax
public class HelloWorld {
public static void main(String []args) {
/* println() function to write Hello, World! */
System.out.println("Hello, World!");
}
}
public class DemoJava {
public static void main(String []args) {
int a;
int b;
a = 10;
b = 20;
System.out.println("Value of a = " + a);
System.out.println("Value of b = " + b);
System.out.println("Value of a = " + a + " and value of b = " + b);
}
}
Python
# print function to write Hello, World! */
print "Hello, World!"
Value of a = 10
Value of b = 20
Value of a = 10 and value of b = 20