How to calculate simple interest in VB.NET

1 Answer

0 votes
using System;

public class Program
{
	public static void Main(string[] args)
	{
		float PrincipalAmount = 30000F;
		float Rate = 4F;
		float Years = 3F;

		float SimpleInterest = (PrincipalAmount * Rate * Years) / 100;

		Console.Write("Simple Interest is : " + SimpleInterest);
	}
}




/*
run:
 
Simple Interest is : 3600.0
 
*/

 



answered Nov 15, 2022 by avibootz

Related questions

1 answer 67 views
1 answer 61 views
1 answer 76 views
1 answer 114 views
114 views asked Oct 26, 2024 by avibootz
1 answer 147 views
147 views asked Nov 15, 2022 by avibootz
2 answers 166 views
1 answer 135 views
135 views asked Nov 15, 2022 by avibootz
...