Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program to check Enter Number is Biggest Or Not. */
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a, b, c;
- int *p, *q, *r;
- clrscr();
- printf("Enter Value A : ");
- scanf("%d",&a);
- printf("Enter Value B : ");
- scanf("%d",&b);
- printf("Enter Value C : ");
- scanf("%d",&c);
- p=&a;
- q=&b;
- r=&c;
- if(*p > *q && *p > *r)
- {
- printf("\n A is Biggest");
- }
- else if(*q > *r && *q > *p)
- {
- printf("\n B is Biggest");
- }
- else
- {
- printf("\n C is Biggest");
- }
- getch();
- }
Add Comment
Please, Sign In to add comment