SAADQUAMER

Largest Number

Jun 8th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. // C Program to Find the Largest Number Among Three Numbers.
  2.  
  3. #include<stdio.h>
  4. int main(){
  5.  
  6. int x,y,z;
  7. printf("ENTER THREE INTEGR VALUE :");
  8. scanf("%d%d%d",&x,&y,&z);
  9. if(x>y){
  10.     if(x>z)printf("%d is the largest number",x);
  11.     else printf("%d is the largest number",z);}
  12. else{
  13.     if(y>z)printf("%d is the largest number",y);
  14.     else printf("%d is the largest number",z);}
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment