-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
144 lines (108 loc) · 1.96 KB
/
Copy pathSource.cpp
File metadata and controls
144 lines (108 loc) · 1.96 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#include <iostream>
using namespace std;
int main()
{
//EXAMPLE 1
//int answer = 2/3 + 3/5;
//printf("%i,answer");
//system("pause");
//return 0;
//EXAMPLE 2
// int answer = 2 % 3 + 3 % 5;
//
// printf("%i", answer);
// system("pause");
// return 0;
//EXAMPLE 3
//int answer = 23 % 15 % -2;
//printf("%i", answer);
//system("pause");
//return 0;
//EXAMPLE 4
/*int answer = 25 * 1 / 2;
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 5;
/*int answer = 25 * 1.0 / 2;
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 6
/*int answer = 25 * (1 / 2);
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 7
/*int answer = 235 / 8 + 7;
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 8
/*int answer = 235 / 8.0 + 7;
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 9
/*int answer = ((20 + 1) / 2 - 2.0) / (23 + 3)*0.2;
printf("%i", answer);
system("pause");
return 0;*/
//EXAMPLE 10
//int avgheight
//EXAMPLE 11
// int IncTaxPercentUp
//EXAMPLE 12
//int IncTaxPercentDown
//EXAMPLE 13
//SteamLibTotal
//EXAMPLE 14
//int
//EXAMPLE 15
//float
//EXAMPLE 16
//char
//EXAMPLE 17
//double
//EXAMPLE 18
//bool
//EXAMPLE 19
/*int numa = 10;
int numb= 25;
int tmp;
printf("select 2 numbers \n");
tmp = numb;
numb = numa;
numa = tmp;
cout << numa << numb;
system("pause");
return 0;*/
//EXAMPLE 20
//int i = 0;
//float f = 0;
//char ch = 'a';
//cin >> i >> ch >> f;
//cout << "i:" <<i << "\nch:" << ch << "\nf:" << f << endl;
//system("pause");
//return 0;
//A: i: 1 ch: A f: 45
//B: i: 1 ch: A f: 45
//C: i: 1 ch: 9 f: 45
//D: i: 1 ch: 9 f: 45
//E: i:0 ch: a f: 0
//F: i:1 ch: B f:0
//EXAMPLE 21
//int a = 0;
//int b = 0;
//int c = 0;
//int d = 0;
//int e = 0;
//int total = 5;
//int ans;
//printf("input 5 numbers to average \n");
//cin >> a >> b >> c >> d >> e;
//ans = (a + b + c + d + e) / total;
//cout<< ans<< endl;
//system("pause");
//return 0;
}