Uri solution 1009 Salary with Bonus
#include<stdio.h>
int main()
{
char ch;
float a,b,c,d;
scanf("%s %f %f",&ch,&a,&b);
c=(b*15)/100;
d=a+c;
printf("TOTAL = R$ %.2f\n",d);
return 0;
}
int main()
{
char ch;
float a,b,c,d;
scanf("%s %f %f",&ch,&a,&b);
c=(b*15)/100;
d=a+c;
printf("TOTAL = R$ %.2f\n",d);
return 0;
}
Comments
Post a Comment