Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int input;
- float output;
- int main () {
- printf ("Your Input :");
- scanf ("%d",&input);
- // if ((tanya == 'y')||(tanya == 'Y')
- if ((input == 300) || (input == 200) || (input = 100) || (input = 0)) {
- output = 200.00;
- printf ("%f",output);
- }
- if ((input = 1) || (input = 2) || ( input = 3)) {
- output = 2.500;
- printf ("%f",output);
- } else {
- printf ("Try again");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement