-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogram6_2.c
68 lines (60 loc) · 945 Bytes
/
program6_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
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
#include<stdio.h>
void Display(int iNo)
{
if (iNo < 0)
{
iNo = -iNo;
}
if( iNo == 1)
{
printf("ONE");
}
else if (iNo == 2)
{
printf("TWO");
}
else if (iNo == 3)
{
printf("THREE");
}
else if (iNo == 4)
{
printf("FOUR");
}
else if (iNo == 5)
{
printf("FIVE");
}
else if (iNo == 6)
{
printf("SIX");
}
else if (iNo == 7)
{
printf("SEVEN");
}
else if (iNo == 8)
{
printf("EIGHT");
}
else if (iNo == 9)
{
printf("NINE");
}
else if (iNo == 0)
{
printf("ZERO");
}
else
{
printf("INVALID NUMBER !!!");
}
}
int main ()
{
int iValue = 0;
printf("Enter Number ");
scanf("%d",&iValue);
Display(iValue);
return 0;
}