Skip to content

Instantly share code, notes, and snippets.

@mraza007
Created January 2, 2019 04:20
Show Gist options
  • Save mraza007/3d92f1d51f315568655385e2f5313812 to your computer and use it in GitHub Desktop.
Save mraza007/3d92f1d51f315568655385e2f5313812 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int num;
int squares;
int count;
// for loop terminates when n is less than count
for(count = 0; count < 1000000; count++)
{
squares = count*count;
printf("%d", squares);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment