online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Name: Michael Maddison Date: March 27 2026 Description: a Java program to create a seating pattern as shown below: Enter number of rows: 3 Enter seats per row: 4 [R1-S1] [R1-S2] [R1-S3] [R1-S4] [R2-S1] [R2-S2] [R2-S3] [R2-S4] [R3-S1] [R3-S2] [R3-S3] [R3-S4] *******************************************************************************/ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.printf("%-30s","Enter the number of rows: "); int rows = sc.nextInt(); System.out.printf("%-30s","Enter the seats per row: "); int seats = sc.nextInt(); System.out.println(); for (int i = 1; i <= rows; i++) { for (int j = 1; j <= seats; j++){ System.out.printf("[R%d-S%d] ", i, j); } System.out.println(); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue