Program to accept two number and print largest among them. #include#include void main() { int a,b; clrscr(); printf("Enter 1st number: "); scanf("%d",&a); printf("Enter 2nd number: "); scanf("%d",&b); if(a>b) printf("Largest value is: %d",a); else printf("Largest value is: %d",b); getch(); }

No comments:
Post a Comment
Thank you