how to create a program that will exit the program if the statement is true.?
example
if (c==1)
*exit code*
can somebody teach me how?
Three answers:
Randem
2009-07-31 13:08:07 UTC
void main (args, etc..) {
int c = 0;
while (c != 1) {
// do stuff
}
return;
}
H. M. C
2009-07-31 10:26:42 UTC
This is a section that deals with languages people, not machines, speak.
You can go
if A>B exit
more program statements
When A is really larger than B, the exit code executes.
?
2016-11-13 02:05:22 UTC
You published to the incorrect place- you decide on a working laptop or computing gadget section- seek for tutorials on C "on the same time as" assertion on line- there are various! additionally, seek for web content or boards with "C" help. con calma (took C++)
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.