Run program many time | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Run program many time

This is a C program that represents a To Do list it has for choices: Add task remove task view tasks exit I want list to keep showing until user chooses to exit the program Example: user chooses to add tasks, then he write 3 tasks and when he finishes the choices "add, remove, view, exit" show again until he decides to exit How can do that? https://code.sololearn.com/cjNy5clayR19/?ref=app

15th Aug 2023, 9:29 PM
rah123
2 Respostas
+ 1
You missed to add label task_list : at line 23 Also add function prototypes...
16th Aug 2023, 11:47 AM
Jayakrishna šŸ‡®šŸ‡³
+ 1
try this for input :- case 1: printf("Enter task: "); scanf("%s",task_list[i]); printf("%s\n", task_list[i]); printf("Task added!\n\n"); if(i<NUMBER_OF_ELEMENTS) { i++; choice = 4; goto task_list; } printf("There are no task left"); goto task_list;
16th Aug 2023, 4:33 PM
Alhaaz
Alhaaz - avatar