online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/* C program to find perfect number between 1 and 500 https://thefellowprogrammer.blogspot.com */ #include <stdio.h> #include <math.h> int main() { int start=1; printf("Perfect Squares are: \n"); while(start<500){ //change 500 to any n // <---****--- https://thefellowprogrammer.blogspot.com ------*****-----> if (sqrt(start) == (int)sqrt(start)) { printf("%d ",start); } start++; } 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