Advertisement
aiNayan

Task5

Jul 19th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     float a, b;
  5.     printf("Input circle radius value: ");
  6.     scanf("%f", &a);
  7.     printf("Input one side's length of a square: ");
  8.     scanf("%f", &b);
  9.     if (a > b)
  10.         printf("%.3f is greather than %.3f", a, b);
  11.     else if (b > a)
  12.         printf("%.3f is greather than %.3f", b, a);
  13.     else
  14.         printf("%.3f & %.3f are same", a, b);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement