Wednesday, April 27, 2016

C: Fiend Leargest Number

Source code:


#include<stdio.h> #include<conio.h> int main() { int a,b; printf("Enter the first value:"); scanf("%d",&a); printf("Enter the Secound value:"); scanf("%d",&b); if(a>b) { printf("The Largest Number is a"); } else printf("The Largest Number is b"); return 0; }
Output:
Enter the first value: 20
Enter the second Value: 40
The Largest value is b

No comments:

Post a Comment

Tarik Billa