Professional Documents
Culture Documents
Computer Application Project
Computer Application Project
2021-2022
class sum
{
public static void main(String args[ ])
{
int a,b,c=0;
a=45;
b=23;
c=a+b;
System.out.println (“sum=”+c);
}
}
Output=68
class product
{
public static void main()
{
int a,b,c=0;
a=20;
b=5;
c=a*b;
System.out.println(“Product=”+c);
}
}
Output=100
class difference
{
public static void main()
{
int a,b,c=0;
a=45;
b=23;
c=a-b;
System.out.println(“Difference=”+c);
}
}
Output=22
class quotient
{
public static void main()
{
int a,b,c=0;
a=20;
b=5;
c=20/5;
System.out.println(“Quotient=”+c);
}
}
Output=4
THANK YOU!!!!!