-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreedy.cpp
57 lines (42 loc) · 828 Bytes
/
greedy.cpp
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
#include <iostream>
using namespace std;
int main() {
cout<<"hello \n";
int a = 1300;
int count = 0;
if(1 == 2 || 4){
cout<<"True";
}
else{
cout<<"False";
}
/*
while(a>1){
cout<<"loop entered\n";
if(a%100 == 0){
cout<<"entered if1\n";
count ++;
a = a/100;
}
else if (a%50 == 0){
cout<<"entered if2\n";
count ++ ;
a = a/50;
}
else if (a%20 == 0){
cout<<"entered if3\n";
count ++;
a= a/20;
}
else if(a%10 == 0) {
cout<<"entered if4\n";
count++;
a = a/10;
}
}
cout<<"lol2\n";
cout<<count<<endl;
cout<<"lol3\n";
*/
return 0;
}