Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a C program to find the maximum value among three numbers using function.
- #include<stdio.h>
- void large_num(int a,int b,int c)
- {
- if(a>b&&a>c)
- {
- printf("%d",a);
- }
- else if(b>a&&b>c)
- {
- printf("%d",b);
- }
- else if(c>b&&c>a)
- {
- printf("%d",c);
- }
- }
- int main()
- {
- int a,b,c;
- scanf("%d%d%d",&a,&b,&c);
- large_num(a,b,c);
- return 0;
- }
Add Comment
Please, Sign In to add comment