online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <stdlib.h> // Transforme um numero decimal em hexadecimal int main(){ int i=0; int resto[100]; int num; int depois; char buff[100]; printf("Digite um numero: \n"); fgets(buff, 100, stdin); sscanf(buff, "%d", &num); depois = num; while(num >= 16){ resto[i] = num % 16; num = num / 16; i++; } resto[i] = num; printf("\nO numero %d em hexadecimal eh: \n",depois); while(i>=0){ if(resto[i] == 10){ printf("A"); } else if(resto[i] == 11){ printf("B"); } else if(resto[i] == 12){ printf("C"); } else if(resto[i] == 13){ printf("D"); } else if(resto[i] == 14){ printf("E"); } else if(resto[i] == 15){ printf("F"); } else { printf("%d",resto[i]); } i--; } printf("\n\n"); fgets(buff, 100, stdin); // system("pause"); a piada jΓ‘ perdeu a graΓ§a :/ }

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