1009 - Salary with Bonus

Problem Link

A Solution in c


#include<stdio.h>
int main()
{
    double salary, sell, bonus;
    char name;
    scanf("%s %lf %lf",&name, &salary, &sell);
    bonus = salary + (sell * 0.15);
    printf("TOTAL = R$ %.2lf\n", bonus);
    return 0;

}




No comments

Theme images by Jason Morrow. Powered by Blogger.