hmmmmm...
now when i compile i get NO errors... but when i RUN it, there is no text.
its just a blank screen.....
any ideas?
Type: Posts; User: Phate4219
hmmmmm...
now when i compile i get NO errors... but when i RUN it, there is no text.
its just a blank screen.....
any ideas?
AHAHAHAHHAHA
just forgot ;s
its fixed now lol.
whoops. forgot ; after while and counters... that brings errors down to:
c:\docume~1\galgar~1\desktop\untitl~1.cpp: In function `int main()':
c:\docume~1\galgar~1\desktop\untitl~1.cpp:10: parse...
here is the code:
#include <stdio.h>
int num1, num2, num3, num4;
int Counter;
int product(int x, int y);
int divide(int z, int a);
int main( void )
ok, i tried adding another int, Counter
inside int Main(void) i put the statements: Counter == 1, While (Counter < 1000) and put the program except return 0 in brackets, and put Counter ++ at the...
what kind of while loop... like just type while above the first printf?
sorry, im REALLY noob. need things spelled out for me lol.
program worked without a hitch! YEAH!!!
btw, is there a way to make it so if i doubleclick the icon on desktop, it doesnt just autoclose after user input is done?
as it is, i get this:
...
thnx a TON.
in my book, there was a code for just multiplying, but no if/else statements, so i looked farther in the book
for some reason it didnt have the brackets... whatever
thanks a ton...
i JUST started C a few days ago.
i decided, after reading a prog in a book i have, to make a program to either multiply or divide two ints depending on user input.
so i wrote the program, got...