/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/
#include<stdio.h>
main()
{
char name;
double sal,b,ts;
scanf("%s%lf%lf",&name,&sal,&b);
ts=sal+(b*.15);
printf("TOTAL = R$ %.2lf\n",ts);
return 0;
}
#include<stdio.h>
main()
{
char name;
double sal,b,ts;
scanf("%s%lf%lf",&name,&sal,&b);
ts=sal+(b*.15);
printf("TOTAL = R$ %.2lf\n",ts);
return 0;
}
//Happy_coding
No comments:
Post a Comment