Uri 1009 Solution in Python,C,C++

Beecrowd1009 – Salary with Bonus solution

problem question

Uri 1009 solution in C- Salary with Bonus solution

#include<stdio.h>

int main() {

double a,b,c;
char name;

scanf("%s %lf %lf",&name,&a,&b);
 c=b*.15+a;

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

return 0;

}

Uri 1009 solution in C++

#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    string name;
    double a, b, c;

    cin >> name >> a >> b;
    c = b * 0.15 + a;

    cout << "TOTAL = R$ " << fixed << setprecision(2) << c << endl;

    return 0;
}

Uri 1009 solution in Python || Beecrowd1009 – Salary with Bonus solution with Python

name = input()
a, b = map(float, input().split())
c = b * 0.15 + a

print(f"TOTAL = R$ {c:.2f}")

Next problem: Beecrowd 1026 To Carry or not to Carry Solution

4 thoughts on “Uri 1009 Solution in Python,C,C++”

Leave a Comment