Simple Interest Calculator

Java Program to make a Simple Interest Calculator .



 package practice;

import java.util.Scanner;


public class SimpleInterest 

{


public static void main(String[] args) 

{

Scanner scan=new Scanner(System.in);

System.out.print("\t\t\tSimple Interest\n\nEnter the Principal(in INR):");

float principal=scan.nextFloat();

System.out.print("Enter the time(in year):");

int time=scan.nextInt();

System.out.print("Enter the rate of interest(out of 100%):");

float interest=scan.nextFloat();

System.out.println("Simple Interest is "+"\""+(principal*time*interest/100)+"\""+"\n\n\t\t\tTotal Amount is "+"\""+((principal*time*interest/100+principal))+"\"");

}


}



   Keep Coding Keep Smiling :)


Comments

Popular posts from this blog

Decimal Number to Binary Number

Power

Palindrome Number