Beecrowd1009 – Salary with Bonus solution
Contents
hide
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}")
Very helpful thanks
you’r welcome
thanks
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.