import java.util.Scanner;
class prog2
{
public static void main(String []args)
{
int p,n;
float r,ans;
Scanner sc= new Scanner(System.in);
System.out.println("enter the p=");
p=sc.nextInt();
System.out.println("enter the r=");
r=sc.nextFloat();
System.out.println("enter the n=");
n=sc.nextInt();
ans = p*r*n/100;
System.out.println("simple interest="+ans);
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.