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 60 views
1 answer 54 views
1 answer 67 views
1 answer 107 views
107 views asked Oct 26, 2024 by avibootz
1 answer 134 views
134 views asked Nov 15, 2022 by avibootz
2 answers 153 views
1 answer 123 views
123 views asked Nov 15, 2022 by avibootz
...