Write a program in JAVA to calculate add of two(2) number

No comments
import  java . util.*;
class  add
{
Public  static  void  main (String  obj[])
    {
int  a , b , c ;
Scanner sc=new  scanner (system.in);
System.out.println (“Enter  the  value  of  a  &  b”);
a=sc.nextInt();
b=sc.nextInt();
c=a+b;
system.out.println(“The  addition  is=”+c);
      }
}

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀