online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<html> <head> <meta charset="UTF-8"> <title>Dibujando tabla</title> </head> <body> <?php if((!empty($_POST["filas"])) and (!empty($_POST["columnas"]))) { $filas = $_POST["filas"]; $columnas = $_POST["columnas"]; }else{ $filas = 4; $columnas = 4; } $numero = 1; $tabla = '<table border="1">'; for($i = 1; $i <= $filas; $i++) { $tabla .= "<tr>"; for($j = 1; $j <= $columnas; $j++) { if($j % 2 == 0) { $tabla .= "<td style='background:red;'>Par ".$numero."</td>"; }else{ $tabla .= "<td style='background:green;'>Impar ".$numero."</td>"; } $numero++; } $tabla .= "</tr>"; } $tabla .= "</table>"; echo $tabla; ?> <form name="formulario" action=' <?php echo $_SERVER['PHP_SELF']?>' method="post"> <div> <label for="name">Indica el número de filas: </label> <input type="number" name="filas" min="0"/> </div> <div> <label for="name">Indica el número de columnas: </label> <input type="number" name="columnas" min="0"/> </div> <input type="submit" value="enviar" name="enviar"> <input type="reset" value="Borrar" name="Borrar"> </form> </body> </html>

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