Skip to content

Commit 342dc9b

Browse files
committed
Create problem27.c
1 parent 33c7c1f commit 342dc9b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

problem27.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//Solved by Roselin Preethi, IT Dept.
2+
3+
#include<stdio.h>
4+
main()
5+
{
6+
int i=5;
7+
printf("%d",fun(fun(fun(fun( fun(i))))));
8+
}
9+
void fun(int i)
10+
{
11+
if(i%2)
12+
return(i+(7*4)-(5/2)+(2*2));
13+
else
14+
return(i+(17/5)-(34/15)+(5/2));
15+
}
16+
17+
18+
OUTPUT:
19+
20+
0

0 commit comments

Comments
 (0)