What if i didnt want to print each value...only just the first one...do somethings to it but not add a value to the element...continue through the loop until I get to the next value. I feel that if...
Type: Posts; User: James Charny
What if i didnt want to print each value...only just the first one...do somethings to it but not add a value to the element...continue through the loop until I get to the next value. I feel that if...
Nope thought I had what i was looking for until i saw that semicolon after my next for loop.....Still unsure on how to process each element of the array, get its number without any other numbers,...
i think it is another for loop i need if i am not mistaken :) thx
so now that I am looping through the different indexes how do I use the values associated with that particular index at the time? say my first element in the array has 231 and the second element has...
int i,t;
int arr[10];
scanf("%d", &t);
for(i=1;i<=t;i++)
scanf("%d", &arr[i]);
for(i=1;i<=t;i++)
{