-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelloworld.c++
64 lines (44 loc) · 1.01 KB
/
helloworld.c++
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
54
55
56
57
58
59
60
61
62
63
64
#include<iostream>
using namespace std;
int main(){
cout<<"Namaste Duniya"<< endl;
int a = 123;
cout << a << endl;
char b ='h';
cout << b << endl;
bool ab = true;
cout << ab << endl;
float f = 1.2;
cout << f << endl;
double d = 1.23;
cout << d << endl;
int size = sizeof(f);
cout << "Size of f is : "<< size << endl;
int c = 'a';
cout << c << endl;
char chh = 98;
cout << chh << endl;
char chf = 123456;
cout << chf << endl;
double h = 2.0/5;
cout<<h<<endl;
cout<<2.0/5<<endl;
int f = 2;
int g = 3;
bool k (f == g);
cout<< k <<endl;
bool k1 (f > g);
cout<< k1 <<endl;
bool k2 (f < g);
cout<< k2 <<endl;
bool k3 (f >= g);
cout<< k3 <<endl;
bool k4 (f <= g);
cout<< k4 <<endl;
bool k5 (f != g);
cout<< k5 <<endl;
bool k6 (f = g);
cout<< k6 <<endl;
int u = 0;
cout << !u <<endl;
}