-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathPAP54EVE.C
More file actions
56 lines (53 loc) · 702 Bytes
/
PAP54EVE.C
File metadata and controls
56 lines (53 loc) · 702 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* REMARK
NAME:
TITLE: WAP to PRINT ODD AND EVEN NUMBER 1 TO 50
*/
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
printf("\n| \tODD\t\t|\tEVEN\t\t|");
for(i=1;i<=40;i++)
{
if (i%2==0)
{
printf("\t%d\t\t|",i);
}
else
{
printf("\n|\t%d\t\t|",i);
}
}
/*printf("EVEN NUMBERS BETWEEN 1 to 50\n");
for (i=1;i<=50;i++)
{
if (i%2==0)
{
printf("\t%d\t",i);
// continue;
}
else
{
//printf("\t%d\t",i);
continue;
}
}
*/
/* PRINT 1 TO 100 EXCEPT 65
for (i=1;i<=100;i++)
{
if (i==65)
{
continue;
}
if(i==75)
{
break;
}
printf("%d\t",i);
}
*/
getch();
}