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; }
2 Respuestas
+ 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;
0
Thankuuuu Thanks A Lot Bro ! Veda Shree S