online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int tabla[3][3]; int i, j, numero, rep; srand(time(NULL)); for(i = 0; i < 3; i++) { for(j = 0; j < 3; j++) { tabla[i][j] = rand()%11; } } printf("\n"); for(i = 0; i < 3; i++) { for(j = 0; j < 3; j++) { printf("%3d", tabla[i][j]); } printf("\n"); } printf("\n\n"); printf("Introduce un número para ver cuantas veces se repite:"); scanf("%d", &numero); rep = 0; for(i = 0; i < 3; i++) { for(j = 0; j < 3; j++) { if(tabla[i][j] == numero) rep++; } } printf("\nEl número %d se repite %d veces.\n\n", numero, rep); return 0; }

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