class arithemetic
{
public static void main(String args[])
{
float a=12, b=2;
System.out.println("a= " +a);
System.out.println("b= " +b);
System.out.println("a+b= " +(a+b));
System.out.println("a-b= " +(a-b));
System.out.println("a*b= " +(a*b));
System.out.println("a/b= " +(a/b));
System.out.println("a%b= " +(a%b));
}
No comments:
Post a Comment