Advertisement
shahriyarafi

Find Weaver (if else)

May 27th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     double a;
  6.     printf("Enter CGPA: ");
  7.     scanf("%lf", &a);
  8.  
  9.  
  10.     if(a>3.99)
  11.     {
  12.         printf("You got 100%% Weaver");
  13.     }
  14.     else if(a>3.74)
  15.     {
  16.         printf("You got 75%% Weaver");
  17.     }
  18.     else if(a>3.49)
  19.     {
  20.         printf("You got 50%% Weaver");
  21.     }
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement