I
I
Iqv2016-02-01 20:31:42
Programming
Iqv, 2016-02-01 20:31:42

How to make the program return to the beginning?

There is a program in C that needs to return to the beginning.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri, 2016-02-01
@Iqv

write code in main inside an infinite loop

while(1) {
  // весь код здесь
}

Y
Yuri Moroz, 2016-02-01
@OPT_DEEP

Use a while loop, or at worst a goto.

N
Nikita Fedotov, 2016-02-02
@ColorCast

  1. Define entry and exit conditions.
  2. Rephrase the task.
  3. Use recursion or loops.
  4. Refuse to use tags.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question