-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0019.cpp
More file actions
34 lines (25 loc) · 795 Bytes
/
0019.cpp
File metadata and controls
34 lines (25 loc) · 795 Bytes
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
#include <iostream>
#include <stdlib.h>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
int a = 5 / 2;
int num1, num2;
num1 = 10;
num2 = 3;
int div = num1 / num2;
int resto = num1 % num2;
cout << "A divisa de num1 por num2 e igual a: " << div << endl;
cout << "A divisao de num1 por num2 tem resto: " << resto << endl;
cout << "O modulo entre 3 e 2 e: " << 3 % 2 << endl;
cout << "O modulo entre 4 e 2 e: " << 4 % 2 << endl;
cout << "O modulo entre 5 e 2 e: " << 5 % 2 << endl;
cout << "O modulo entre 6 e 2 e: " << 6 % 2 << endl;
cout << 10 % 2 << endl;
cout << 9 % 2 << endl;
system("pause");
return 0;
}