hey,
i know that this is a really easy question...but i can't seem to figure out what's wrong with the code.. this function is meant to state every odd number.
#include<stdio. h>
int main (void)
{
int i, sum=0;
for (i=1; i<=21; i=i+2) {
(sum = sum + 1);
printf("%d\n",s um );
}
return 0;
}
i know that this is a really easy question...but i can't seem to figure out what's wrong with the code.. this function is meant to state every odd number.
#include<stdio. h>
int main (void)
{
int i, sum=0;
for (i=1; i<=21; i=i+2) {
(sum = sum + 1);
printf("%d\n",s um );
}
return 0;
}
Comment