Program: #include<stdio.h> #include<conio.h> void main() { int no1,no2; clrscr(); printf("\n enter the no1 and no2 "); scanf("%d%d",&no1,&no2); if(no1>no2) printf("\n the %d is greater",no1); elseprintf("\n the %d is greater",no2); getch(); } Output:
No comments:
Post a Comment