Advertisement
Istanvir389

Greatest Number

Jul 19th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. float a,b;
  6. printf("Enter the value of a==");
  7. scanf("%f",&a);
  8. printf("Enter the value of b==");
  9. scanf("%f",&b);
  10. if(a>b)
  11. {
  12. printf("a is greater than b");
  13. }
  14. else
  15. {
  16. printf("b is greater than a");
  17. }
  18. return 0;
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement