-
Notifications
You must be signed in to change notification settings - Fork 0
/
l2_2.c
42 lines (28 loc) · 803 Bytes
/
l2_2.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
#include <stdio.h>
int main(){
int n, m;
scanf("%d %d", &n, &m);
if (n>m){
//printf("N nao pode ser menor que m");
scanf("%d %d", &n, &m);
}
n=n+1;
//printf("RESP:");
while (n<m){
if (!(n%3)&& !(n%4)&& !(n%7)){
printf("%d ", n);}
else if (!(n%3) && !(n%4)){
printf("%d ", n);}
else if (!(n%3) && !(n%7)){
printf("%d ", n);}
else if (!(n%4) && !(n%7)){
printf("%d ", n);}
else if (!(n%3)){
printf("%d ", n);}
else if (!(n%4)){
printf("%d ", n);}
else if (!(n%7)){
printf("%d ", n);}
n++;}
return 0;
}