using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace how_to_make_interest_program
{
class Program
{
static void Main(string[] args)
{
Double A, R, T, ins;
Console.Write("Enter the total Amount of value A :");
A = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter the intrest of rate value R :");
R = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter the Total time T :");
T = Convert.ToDouble(Console.ReadLine());
ins = (A * R * T) / 100;
Console.Write("Inerest is :" + ins);
Console.ReadKey();
}
}
}
A :- Total Amount,
R:- Rate of interest,
T :- Time ,
how to make Program simple interest using c sharp
Output:-
No comments:
Post a Comment