0

Why this code in C language Not working, Please elaborate as i am a beginner...

https://code.sololearn.com/c7wIePkKL7RJ/?ref=app

10th Jul 2019, 5:18 PM
Akshat Seth
Akshat Seth - avatar
5 Respostas
+ 14
// This works: #include<stdio.h> #include<conio.h> int main() { int a; printf("Enter an no. "); scanf("%d", &a); if(a%2==0) printf("\n Even"); else printf("\n odd"); return 0; }
10th Jul 2019, 5:27 PM
VEDANG
VEDANG - avatar
10th Jul 2019, 5:26 PM
Asmit joy
Asmit joy - avatar
+ 4
remove clrscr(); and getch();
10th Jul 2019, 5:28 PM
Muhammadyusuf
Muhammadyusuf - avatar
+ 2
Thanka to all of you for clearing my doubts. 😁
11th Jul 2019, 1:27 AM
Akshat Seth
Akshat Seth - avatar
+ 1
In turbo c i don,t use return fuction and it works fine.. And what is Return function used for please answer in detail
10th Jul 2019, 5:34 PM
Akshat Seth
Akshat Seth - avatar