Thank you all, everything is right now. tomorrow I will be back with new assignment and new questions :)
Type: Posts; User: jennilla
Thank you all, everything is right now. tomorrow I will be back with new assignment and new questions :)
excactly, should it be list[i] = i;?
ok, now it works, but works wrong, it writes in wrong numbers.
it still says that there is an error... confused...
int main()
{
int i,list[10];
int j=0;
for (i=0, i<10, i++){
list[j] = i;
};
and I also need the code to write numbers in the array by itself not manually, but inthis way I have an error -parse error before'?
If I have to write the code in defensive programming, then what...
and one more question - what is deffensive programming?
ok, now it writes 0 in even numbers, but how to get them deleted. i could rewrite the array somehow? and why do I need (int argc, char *argv[]) and #include <stdlib.h>?
please help a beginner to start writing the code:
I need to write a code that writes in a list numbers from 1 to 10 and then delets the even ones. i dont know what to start with. please help.