Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int X,Y;
- double total;
- scanf("%lld %lld",&X,&Y);
- if(X==1)
- total=Y*4.00;
- else if(X==2)
- total=Y*4.50;
- else if(X==3)
- total=Y*5.00;
- else if(X==4)
- total=Y*2.00;
- else if(X==5)
- total=Y*1.50;
- printf("Total: R$ %.2lf\n",total);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement