Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c;
- printf("Enter the value of the first number: ");
- scanf("%d",&a);
- printf("Enter the value of the second number: ");
- scanf("%d",&b);
- printf("Enter the value of the third number: ");
- scanf("%d",&c);
- if(a>b && a>c)
- {
- printf("%d is the largest number\n",a);
- }
- else if("b>c && b>a")
- {
- printf("%d is the largest number\n",b);
- }
- else
- {
- printf("%d is the largest number",c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement