Generate numbers n store it in an array in C programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zenoba
    New Member
    • Oct 2008
    • 8

    Generate numbers n store it in an array in C programming

    I have to generate numbers from 0 to 32. i did it using a for loop and it worked. i used printf to display the numbers. it was good n was displayed correctly.

    but i have to store the numbers in an array. that i am unable to do. i did try but while i am displaying the array i am getting garbage.

    Can someone suggest a way of how to display the numbers 0 to 32, store them in an array n display them on screen please???
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Post the code you have tried with.

    Comment

    • Zenoba
      New Member
      • Oct 2008
      • 8

      #3
      Originally posted by r035198x
      Post the code you have tried with.
      ya...i've tried again n again..
      i've got it..it now works..
      i actually messed with the loops..

      Comment

      Working...