UIR online judge problem 1009 solution c programming
code :
#include<stdio.h>
int main()
{
char name[30];
float fixedsalary;
double sel,TOTAL;
gets(name);
scanf("%f %lf",&fixedsalary,&sel);
TOTAL=fixedsalary+(sel*15)/100;
printf("TOTAL = R$ %.2lf\n",TOTAL);
return 0;
}
output :
No comments