A string in java program is written with in.........
Answers
Answered by
0
HEY MATE HERE IS YOUR ANSWER....
import java.io.*;
class program
{
public static void main(String args[]) throws IOException
{
int a, b, c=1,d=1;
BufferedReader br = new BufferedReader(new) InputStreamReader(System.in));
System.out.println("Enter the two numbers to add:");
a = Integer.parseInt(br.readLine());
b = Integer.parseInt(br.readLine());
c = a / b;
d=a*b;
System.out.println("division of two numbers=" + c);
System.out.println("multiplication of two numbers=" + d);
}
}
import java.io.*;
class program
{
public static void main(String args[]) throws IOException
{
int a, b, c=1,d=1;
BufferedReader br = new BufferedReader(new) InputStreamReader(System.in));
System.out.println("Enter the two numbers to add:");
a = Integer.parseInt(br.readLine());
b = Integer.parseInt(br.readLine());
c = a / b;
d=a*b;
System.out.println("division of two numbers=" + c);
System.out.println("multiplication of two numbers=" + d);
}
}
Answered by
3
A String in Java is written enclosed inside double inverted commas (").
Similar questions