hello,...i want to make program to square the numbers from 1 to 20. i have written this program, it's running but not giving the required answer.i think it is giving a garbage value...please tell me where is the issue....I'm very basic programmer studying C++...hope you'll response soon
Code:
void main(void)
{int a;
int b;
b=a*a;
for (a=1; a<21; a++)
{printf("%d",b);
printf("the
Last edited by zmbd; Oct 21 '12, 03:31 PM.
Reason: Removed the garbage. - Please Do NOT do a direct screen paste. Also format submitted code using the <CODE/> button on the toolbar.
i thing there isn't any mistake in my program....but it gives expression error....why it is giving this error...tell me plzzz?
here is my program
≡ File Edit Search Run Compile Debug Project Options Window Help
┌────────────── ─────────────── ───...
Leave a comment: