oh i see what you say. well i was working on it and up until the line that says "while" is right, i think?..from that on is all what i thought would work, obviously didn't.
Type: Posts; User: chelito19
oh i see what you say. well i was working on it and up until the line that says "while" is right, i think?..from that on is all what i thought would work, obviously didn't.
This is my first time taking a computer science class, and Im having trouble with it. This problem is supposed to compare two or more arguments and the program will search the second and remaining...
im sorry if i confused you, but thanks i appreciate all the help. i will try to finish the code and hopefully i'll learn to use this language properly.
with while i didnt get anything, it seemed to never terminate. so i went back to what i had when at least it was returning 0. I dont think we are supposed to select 15 random numbers, the instructor...
ok so you are saying that i should define those 15 elements, the program is supposed to run with up to any 15 values (not necessarily 15, could be less)
for (i = 0; i < 15; i++){
while...
before i post what i fixed in my code, how do i do this part about indenting my code?
i tried that at first and got nothing so i changed it, but i dont know if im missing something in the printf command, like a variable or something
I should have thought of that first, Im just learning the language and it gets confusing sometimes. i tried removing the return 0 part and still get nothing. do you have any suggestions?
I need to write a code that will add 15 random elements in an array.
This is what i have but i cannot get it to add any elements, it always returns 0
int main() {
int a[15];
int sum =...