I am making a database entry and i having difficulties in making the loop after the user login for menu selection. Is it using if else for another display? Like how to program after the user had login successful for menu selection.For menu selection, I have 5 categories which is inventory, Employee, Supplier, Customer and Daily sales
#include <stdio.h>
#include <string.h>
#include <conio.h>
int main()
{
char username[15];
char password[12];
printf("\tEPLAS COMPANY Database\n");
printf("Enter your username:\n");
scanf("%s",&username);
printf("Enter your password:\n");
scanf("%s",&password);
if(strcmp(username,"stabilo")==0){
if(strcmp(password,"123")==0){
printf("\nWelcome.Login Success!");
}else{
printf("\nwrong password");
}
}
return 0;
}