do while angepasst

This commit is contained in:
wildjan committed 2024-12-14 22:31:49 +01:00
1 parent 8cea008459
commit 81a0d68cc2
1 file changed
+3 -5
+3 -5
View File
@@ -9,7 +9,6 @@
#include <stdlib.h>
#include "ui.h"
#include <assert.h>
#include "db.h"
#include "llist.h"
@@ -36,8 +35,7 @@ int main(void)
int choice = 0, i = 0;
do
{
do {
printf(" -1- Neues Fach eingeben\n");
printf(" -2- Verfuegbare Zeit eingeben\n");
printf(" -3- Alle vorhandenen Faecher aufliesten\n");
@@ -47,8 +45,8 @@ int main(void)
if( scanf("%d", &choice) != 1){
printf("Falsche Eingabe\n");};
choice = 0;
while(( choice < 1 || choice > 5)){
}while(( choice < 1 || choice > 5));
{
switch (choice)
{
case 1: