- 3
How to solve this problem ?š
Write a program to take monthly salary as input, and calculate and output the annual income.use with C# Language Sample Input 800 Sample Output 9600
5 Answers
+ 3
What Satyam Mishra wrote is correct but not with the C# language example. You did tag C++ yasitha ranasinghe, so that is why you received that code.
I hope we all learnt an important lesson about the power of correct tagging in the meantime!
+ 2
Satyam Mishra Pls avoid answering with finished code, because this makes the OP skip the most important part of the learning process. Prefer giving hints for the OP to find the solution.
+ 2
Ok, I will do that.
+ 1
Just take user input and output value *12 for annual income.
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
cout<<a*12<<endl;
return 0;
}
+ 1
yasitha ranasinghe
Monthly is 800
So yearly (annual) = ?
1 year = 12 months