Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Whole number square roots only?
I need to write a program that will list the fibonacci sequence up until a million (This part is done) and then out of the numbers, I need to take the square roots, and only print the ones that return whole numbers, if I take the square roots of each number (being int's, It will return all the answers rounded to the nearest whole number, which is not what I need. Since I don't even know where to begin on this, I have no code implementing the square root portion. Not asking for it to be done for me , just where do I start maybe? Thanks
Language - C#include #include
int x, y, z,c,s;
x=1; /*Initiating the first values of the fibonacci sequence*/
c=1; /*Initiating the first value for the count*/
", x); /*The first two values of the sequence are printed here*/
printf("The amount of numbers in the follwing sequence is %d
0 · ·