forked from AlproITS/DP_modul-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.c
More file actions
42 lines (34 loc) · 661 Bytes
/
loop.c
File metadata and controls
42 lines (34 loc) · 661 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
35
36
37
38
39
40
41
42
#include <stdio.h>
#define MILLION_MASTER 1000000
int main(int argc, char const *argv[])
{
int n = 0;
while (n < 10)
{
printf("[%d] PING!\n", n);
++n;
}
do
{
printf("[%d] PING!\n", n);
++n;
} while (n < 10);
for (int i = 0; i < 10; ++i)
{
printf("i = %d\n", i);
if (i == 7) break;
}
for (int i = 0; i < 10; i++)
{
if (i == 4) continue;
for (int j = 3; j > 0; --j)
{
printf("%d:%d\n", i, j);
}
}
// while (MILLION_MASTER)
// {
// printf("M");
// }
return 0;
}