🔒 Closed Need help java

Status
Not open for further replies.
IMG_20210226_101310.webp
yan po yung problem bali nagawa ko naung code na magpeperform ng add,sub,mul,div ang problema lng diko po alam pano ilalagay yan sa three class files
Java:
public static void main(String[] args) {

int x, y, result;
      System.out.println("Enter the number: ");
      Scanner sc = new Scanner(System.in);
      x = sc.nextInt();
      y = sc.nextInt();
      result = x * y;
      System.out.println("Answer: "+result);
  }
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 3
    Replies
  • 410
    Views
  • 2
    Participants
Last reply from:
Arcturus

Trending Topics

Online now

Members online
1,232
Guests online
2,447
Total visitors
3,679

Forum statistics

Threads
2,332,197
Posts
29,263,272
Members
1,146,111
Latest member
haze_055555
Back
Top