To find the greatest among two numbers in computer science
Answers
Answered by
8
Write program to find greatest between two numbers in C
h> void main() { int n1,n2,sum; clrscr(); printf("\nEnter 1st number : "); scanf("%d",&n1); printf("\nEnter 2nd number : "); scanf("%d",&n2); if(n1 > n2) printf("\n1st number is greatest. "); else printf("\n2nd number is greatest.
hope it is useful for you Good morning . have a great day. take care
Similar questions