Header Ads

URI Online Judge | 1009 Salary with Bonus

#include <stdio.h>

int main() {

    /**
     * Escreva a sua solução aqui
     * Code your solution here
     * Escriba su solución aquí
     */
    double money, salary, total;
    char s[20];
    scanf("%s",&s);
    scanf("%lf",&money);
    scanf("%lf",&salary);

    total = money + (salary*.15);

    printf("TOTAL = R$ %.2lf\n",total);

    return 0;
}


No comments:

Powered by Blogger.