Click here to Skip to main content
15,891,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
1
256
58081
13075456
2942086082
661970995456
Posted
Comments
Patrice T 8-Oct-15 2:34am    
How do you get theses numbers ? got a formula ?

with printf function. Like that
C++
int number = 1;
printf ("%d \n", number);


and so on.

Consider learning the language...
 
Share this answer
 
This is a simple math problem. By looking at the number, I think they're squares of different number.
You can first look into it[^]. Try to understand how the square root calculated, and then write a program for it.

And as I assume, this a homework; it won't entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".

You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code.

Thanks to Richard [^],
please read the 6th point from this: A link to the Guidelines
[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900