Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int input;
  4. float output;
  5.  
  6. int main () {
  7.     printf ("Your Input :");
  8.     scanf ("%d",&input);
  9.     // if ((tanya == 'y')||(tanya == 'Y')
  10.  
  11.     if ((input == 300) || (input == 200) || (input = 100) || (input = 0)) {
  12.         output = 200.00;
  13.         printf ("%f",output);
  14.  
  15.     }
  16.     if ((input = 1) || (input = 2) || ( input = 3)) {
  17.         output = 2.500;
  18.         printf ("%f",output);
  19.     } else  {
  20.         printf ("Try again");
  21.     }
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement