i'm doing it on unix..
i think it might be unix.. or something.. i dunno cuz i submitted the home work on the website and it works.. but my compiler still returns the wrong answer.. hm
either...
Type: Posts; User: felicityxiv
i'm doing it on unix..
i think it might be unix.. or something.. i dunno cuz i submitted the home work on the website and it works.. but my compiler still returns the wrong answer.. hm
either...
yes to everything u asked
and oddly enough - when i put it to return 12345.. it STILLL returned three, when i typed three in as my first variable.. is there something wrong with my compiler?
...
i modified it this way- to include what u suggested and what he said.. it still is giving me the dingie 3 as the product.. lol.. ARGH! *pulls hair out*
#include <stdio.h>
int product(int x,...
thank you for your suggestion.. but even with it- the return was still the first number i put in..
and here's what my professor suggested- i'm not sure why... but:
b) do not return inside...
ok, so i compiled this program- it has no errors.. but it keeps returning the first number i put in as a variable..
the assignment was to write a for loop that returns the product (number times a...