Ads

Monday, May 11, 2020

URI Online Judge 1009 Salary with Bonus Solution

URI Online Judge | 1009
Salary with Bonus
Adapted by Neilor Tonin, URI  Brazil

Timelimit: 1


Problem Description:

Problem Number:1009
Problem Name: Salary with Bonus
Author’s Name:Neilor Tonin, URI  Brazil
Timelimit: 1
Problem Category: BEGINNER.
Problem Source: https://www.urionlinejudge.com.br/judge/en/problems/view/1009
Solution in C


#include <stdio.h>
int main()
{
    char M[100];
    scanf ("%s", M);
    double x,y,z;
    scanf("%lf %lf", &x,&y);
    z=x+(y*15)/100;
    printf ("TOTAL = R$ %.2lf\n",z);
    return 0;
}




0 comments:

Post a Comment