Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // itransition.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <math.h>
- int main()
- {
- FILE *file;
- file = fopen("file.txt","wt+");
- for (int i=0; i<100000000; i++)
- {
- int x = sqrt((float)i);
- if ( x*x == i)
- {
- fprintf(file,"%d\n",i);
- }
- }
- fclose(file);
- return 0;
- }
Add Comment
Please, Sign In to add comment