+ 7

Write a program that asks the user for his salary and adds a 25% bouns

the program should print the final salary after adding the computed 25% bouns.

13th Mar 2018, 12:30 AM
Mohamed Atito
Mohamed Atito - avatar
7 Réponses
13th Mar 2018, 12:57 AM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 8
https://code.sololearn.com/c4QPoE47Tkj2/?ref=app
13th Mar 2018, 9:45 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 7
@Warith I think the answer was asked in C++. #include <iostream> using namespace std; int main() { double a; cin>>a; double b = a + 0.25*a; cout<<b; return 0; }
13th Mar 2018, 1:51 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 6
This is my first program in C++ https://code.sololearn.com/ccFwAUMVN4Se/?ref=app
13th Mar 2018, 2:17 AM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 5
#include <iostream> using namespace std; int main() { double salary; cout<<"please enter the base salary"; cin>>salary; cout<<"your final salary is:"<<salary+salary*0.25; return 0; }
13th Mar 2018, 4:04 PM
MOHAMMED MOTASIM HAMED
MOHAMMED MOTASIM HAMED - avatar
0
#include <iostream> using namespace std; int main() { double a; cin>>a; double b = a + 0.25*a; cout<<b; return 0; } answer in c++
13th Mar 2018, 12:45 PM
Ujjwal Lal