using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Simple_Interest
{
Class Program
{
static void main(string[] args)
{
double P, T, R, I;
Console.WriteLine("Input Principle, Rate of Interest, and time.");
P= Convert.ToInt32(Console.ReadLine());
T= Convert.ToInt32(Console.ReadLine());
R= Convert.ToInt32(Console.ReadLine());
I= (P*T*R)/100;
Console.WriteLine("The simple interest is :{0}", I);
Console.ReadLine();
}
}
}
OutPut:
Input Principle, Rate of Interest, and time.
5000
5
1
The simple interest is: 250
Comments
Post a Comment