User Profile

Collapse

Profile Sidebar

Collapse
Bisyar khub
Bisyar khub
Last Activity: Oct 24 '12, 08:29 AM
Joined: Sep 30 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Bisyar khub
    started a topic Make program to square the numbers from 1 to 20
    in C

    Make program to square the numbers from 1 to 20

    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
    ...
    See more | Go to post
    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.

  • Bisyar khub
    replied to Error
    in C
    thanx a lot sir.....now it's working......bu t not giving the answer
    See more | Go to post

    Leave a comment:


  • Bisyar khub
    replied to Error
    in C
    comma from where sir?
    See more | Go to post

    Leave a comment:


  • Bisyar khub
    replied to Error
    in C
    sir..... despite removing the semicolon the program is not working..i.e it's not compiling....
    See more | Go to post

    Leave a comment:


  • Bisyar khub
    started a topic Error
    in C

    Error

    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
    ┌────────────── ─────────────── ───...
    See more | Go to post
No activity results to display
Show More
Working...