+ 2
I need the code for the exercise 10.2 c#
Write a program to take the monthly salary as input, calculate and generate the annual income.
2 Answers
+ 3
show your code attempts đđđđ
0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
//int salary = Convert.ToInt32(Console.ReadLine());
//your code goes here
decimal monthSalary = int.Parse(Console.ReadLine());
Console.WriteLine(monthSalary*12);
}
}
}