i cannot figure out how to input the square root of this problem. i just started a class a few days ago at university and my teacher made the assumption that we all have a hale background in computer science:
To test our knowledge of loops and if statements, we shall write a program which will prompt the user to enter an integer n. If n is positive, the user should print out a table of squares, cubes and square roots of the numbers between 1and n (inclusive). If the number is zero or negative, the user should print an appropriate error message.
i've had to largely teach myself with online courses, so i've been hacking away at this for a few hours. it must be noted again that i am a complete novice, so please be liberal with the layman's terms.
this is what i've got so far:
printf("Enter an Integer: ");
printf("Sorry, try inputting a positive number next time.\n");
thanks in advance for being reasonable.