Virajsinh

A_PRM_09

Oct 7th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. /* Write a Program to check Enter Number is Biggest Or Not. */
  2.  
  3. #include<stdio.h>
  4. #include<conio.h>
  5.  
  6. void main()
  7. {
  8.     int a, b, c;
  9.     int *p, *q, *r;
  10.     clrscr();
  11.  
  12.     printf("Enter Value A : ");
  13.     scanf("%d",&a);
  14.     printf("Enter Value B : ");
  15.     scanf("%d",&b);
  16.     printf("Enter Value C : ");
  17.     scanf("%d",&c);
  18.  
  19.     p=&a;
  20.     q=&b;
  21.     r=&c;
  22.  
  23.     if(*p > *q && *p > *r)
  24.     {
  25.         printf("\n A is Biggest");
  26.     }
  27.     else if(*q > *r && *q > *p)
  28.     {
  29.         printf("\n B is Biggest");
  30.     }
  31.     else
  32.     {
  33.         printf("\n C is Biggest");
  34.     }
  35.  
  36.     getch();
  37. }
Add Comment
Please, Sign In to add comment