0

what is wrong in this ???

#include<stdio.h> #include<conio.h> main void() { int a,b; printf("Enter a no. :-> "); scanf("%d",&a); printf("Enter a no. :-> "); scanf("%d",&b); { if a>b; printf("%d > %d", a,b); else; printf("%d < %d", a,b); } getch(); return0; }

12th Jun 2019, 7:45 AM
kabir
2 Respostas
+ 2
#include<stdio.h> int main() { int a,b; printf("Enter a no. :->\n"); scanf("%d",&a); printf("Enter a no. :->\n "); scanf("%d",&b); if (a>b) printf("%d > %d", a,b); else printf("%d < %d", a,b); return 0; } *Main function name should be int main() or void main(). * semi colon is not required after if condition and else in your code. * getch() is not required. * rerurn 0;
12th Jun 2019, 8:01 AM
Veda Shree S
Veda Shree S - avatar
0
Thankuuuu Thanks A Lot Bro ! Veda Shree S
25th Jun 2019, 1:56 PM
kabir