🔒 Closed Need help java

Status
Not open for further replies.

KilleerR8

Eternal Poster
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
  • 353
    Views
  • 2
    Participants
Last reply from:
Arcturus

Online now

Members online
1,037
Guests online
1,851
Total visitors
2,888

Forum statistics

Threads
2,277,086
Posts
28,974,272
Members
1,229,726
Latest member
jeng1626
Back
Top