online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, COBOL, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> int main(void) { FILE *archivo; archivo = fopen("valores.txt", "w"); if (archivo == NULL) { printf("No se pudo abrir el archivo.\n"); return 1; } // Escribir los valores en el archivo for (int i = 1; i <= 10; i++) { fprintf(archivo, "%d\t%d\n", i, i * 2); // Primera columna: i, Segunda columna: i*2 } fclose(archivo); printf("Archivo generado exitosamente.\n"); return 0; }
1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 18 10 20

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