Tuesday, September 18

Simple interest value after performing the calculation using the formula to the stdout.



Coding:

/* Read input from STDIN. Print your output to STDOUT*/

import java.io.*;
import java.util.*;
public class MyCode {
   public static void main(String args[] ) throws Exception {

//Write code here
Scanner input=new Scanner(System.in);
int b,c,i;
double a,si=0;
a=input.nextDouble();
b=input.nextInt();
c=input.nextInt();
si=(a*b*c)/100;
i=(int) si;
System.out.println("Interest Rate in Integer: " + i);

   }
}

Output:

2000
5
2

Interest Rate in Integer: 200

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...