array ,plz let me know

This is a discussion on array ,plz let me know within the C Programming forums, part of the General Programming Boards category; <code snipped by moderator> i have wriiten this code for printing the sum of the squares of 10 numbers from ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    63

    array ,plz let me know

    <code snipped by moderator>

    i have wriiten this code for printing the sum of the squares of 10 numbers from 1 to 10 in an array......
    plz tell me guys is this a correct code.......?
    it will be a huge boost for me ,if u would tell me is this a correct program that i have written.........?
    Last edited by Salem; 10-05-2004 at 01:21 AM. Reason: Removal of code without code tags

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    I've come to the conclusion that you're too dumb to follow simple instructions on how to post code.
    Which makes actually learning a programming language pretty much a non-starter.

    Just how many times do we have to tell you to use code tags?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    63
    i still don't know what u r talking about?and what u want?
    can't u just check my program and let me know if this is correct or not.........?
    and if there r some things that u want to make me understand then can't u just do and help me out......instead of saying that over and over again...if imnot able to understand...the least u can do is help me out....

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    read this....i could have made it easy and put url tags...but oh well.....

    http:// cboard.cprogramming.com/showthread.php?t=25765

  5. #5
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    What Salem is talking about is the fact that you do not post your code using code tags - just like he said. What is hard to understand about that? If you go to the C board index (back one page from here), right near the top you will see this:

    Sticky: << !! Posting Code? Read this First !! >>
    And if you click on it (this is the really cool part!) it goes to another page which tells you all about how to use code tags. It is a rule on this board that if you are posting code, you need to use code tags. Heck, I will even help you out here - dude.

    ~/

  6. #6
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722
    Can't you run your program and verify the output by yourself??
    Your code seems fine, your post doesn't. Plus, you don't pay for writing so you don't need to write like SMSs.

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Salem
    I've come to the conclusion that you're too dumb to follow simple instructions on how to post code.
    Which makes actually learning a programming language pretty much a non-starter.

    Just how many times do we have to tell you to use code tags?
    Just give'm a red square any time you see anyone not using code tags. That's what I do.

    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,498
    Code has been formatted - now its your turn to try
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  2. from 2D array to 1D array
    By cfdprogrammer in forum C Programming
    Replies: 17
    Last Post: 03-24-2009, 10:33 AM
  3. Replies: 6
    Last Post: 11-09-2006, 02:28 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21