Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // C Program to Find the Largest Number Among Three Numbers.
- #include<stdio.h>
- int main(){
- int x,y,z;
- printf("ENTER THREE INTEGR VALUE :");
- scanf("%d%d%d",&x,&y,&z);
- if(x>y){
- if(x>z)printf("%d is the largest number",x);
- else printf("%d is the largest number",z);}
- else{
- if(y>z)printf("%d is the largest number",y);
- else printf("%d is the largest number",z);}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment