What's new

Java Need help java

KilleerR8

Eternal Poster
Joined
Mar 16, 2018
Posts
1,233
Solutions
1
Reaction
1,281
Points
459
IMG_20210226_101310.jpg

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);
  }
}
 

Attachments

Similar threads

Back
Top