Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. //Created by Shashwat Raj
  2. //A program to find greatest No. among 3 Nos. using Ternary Operator
  3. #include<stdio.h>
  4. void main()
  5. {
  6. int a=7,b=4,c=9;
  7. int larg;
  8. larg=(((a>b)&&(a>c))?a:((b>c)?b:c));
  9. printf("Largest Number : %d",larg);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement