import java.util.Scanner;
public class percent{
public static void main(String args[]){
Scanner input=new Scanner(System.in);
int a=input.nextInt();
System.out.println(a);
Scanner input3=new Scanner(System.in);
String operator=input3.nextLine();
System.out.println(operator);
Scanner input2=new Scanner(System.in);
int b=input2.nextInt();
System.out.println(b);
if(operator.equals("+")){
int ans=a+b;
System.out.println("Answer= "+ ans);
}
if(operator.equals("x")){
int answer=a*b;
System.out.println("Answer= "+ answer);
}
if(operator.equals("-")){
//System.out.println("Answer= "+ a-b);
}
if(operator.equals("/")){
double quotiant=(double) a/(double) b;
System.out.println("Answer= "+ quotiant);
}
boolean happy= true(;)
System.out.println(happy);
}
}
percent.main(null);
import java.util.Scanner;
public class JavaExample
{
public static void main(String args[])
{
float p, r, t, sinterest;
Scanner scan = new Scanner(System.in);
System.out.print("Enter the Principal : ");
p = scan.nextFloat();
System.out.print("Enter the Rate of interest : ");
r = scan.nextFloat();
System.out.print("Enter the Time period : ");
t = scan.nextFloat();
scan.close();
sinterest = (p * r * t) / 100;
System.out.print("Simple Interest is: " +sinterest);
}
}
JavaExample.main(null);