0% found this document useful (0 votes)
17 views

Arth Java

arithmetic operations in java

Uploaded by

ShanthiniSampath
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Arth Java

arithmetic operations in java

Uploaded by

ShanthiniSampath
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

import java.io.

*;
class arth
{
public static void main String(args[])throws IO!c"ption
{
int a#b;
String op;
$u%%"r"d&"ad"r br'n"w $u%%"d&"ad"r(n"w InputStr"am&"ad"r(S(st"m.in));
S(st"m.out.println()nt"r two argum"nts*);
a'Int"g"r.pars"Int(br.r"ad+in"());
b'Int"g"r.pars"Int(br.r"ad+in"());
S(st"m.out.println()nt"r op"ration u n""d to do*);
op' br.r"ad+in"();
S(st"m.out.println(),h" r"sult -*.a.op.b);
/
/

You might also like