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
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.