Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16859 2024-04-19 14:11:32 dnt Rectangle Area Java 105 ms 41908 kb Runtime Error - 2
Test Cases
CPU Memory Verdict
1 105 ms 41908 kb Accepted
2 103 ms 38228 kb Runtime Error
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6.  
  7. // Read the height and width from input
  8. int height = sc.nextInt();
  9. int width = sc.nextInt();
  10.  
  11. // Calculate the area
  12. int area = height * width;
  13.  
  14. // Print the area
  15. System.out.println(area);
  16. }
  17. }
  18.  
  19.