Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'ve got a basic C program I\'m having some issues with. TASK: prompt user for

ID: 3648606 • Letter: I

Question

I've got a basic C program I'm having some issues with. TASK: prompt user for an integer ,k, 1-30. Then, display the first k squares in bases 10, 8, and 16 EXAMPLE: if the user were to enter 7 Base 10: Base 8: Base 16: 1 1 1 ... .... ........ ... ... ... ... .... ... ... . .. ... .... .... .... 49 61 31 (FIRST AND LAST ROWS SHOWN) #include int main() { int userinput, square, index printf("enter an integer in the range 1-30"); scanf("%d", &userinput); printf("displaying squares for 1-%d", userinput); I am new to this and am not sure how to formulate the for loop and conversions between bases. THANKS!

Explanation / Answer

above was a php code...i am sure you will be able to write c code from that.. you lost in the loops right..?? the loop is explained in the above program

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote