- 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

6th Jul 2022, 4:56 PM
yasitha ranasinghe
yasitha ranasinghe - avatar
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!
6th Jul 2022, 5:35 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
6th Jul 2022, 8:58 PM
Emerson Prado
Emerson Prado - avatar
+ 2
Ok, I will do that.
7th Jul 2022, 6:17 AM
Satyam Mishra
Satyam Mishra - avatar
+ 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; }
6th Jul 2022, 5:02 PM
Satyam Mishra
Satyam Mishra - avatar
+ 1
yasitha ranasinghe Monthly is 800 So yearly (annual) = ? 1 year = 12 months
6th Jul 2022, 7:45 PM
AĶ¢J
AĶ¢J - avatar