Share Your Project Idea

Share Your Project Idea

Share Your Project Idea

Number of replies: 1
In reply to First post

Re: Share Your Project Idea

by Md Salah Uddin -
// Online C compiler to run C program online
#include
int main() {
// Write C code here
mm:
printf("Select which division we want to visit\n");
printf("1.Dhaka\n2.Chattogram \n3.Rajshahi\n");
int input;
scanf("%d",&input);
if(input==1){
printf("Welcome to dhaka...plz select places\n");
printf("1.Ahsan Manjil\n2.DIU \n");
scanf("%d",&input);
if(input==1){
printf("Built in 1872 and standing on the river Buriganga, this stately building offers the visitors a feeling of the life-style of the Nawabs of Dhaka. Sometimes known as the Pink Palace, this building now houses a splendid museum.\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}

}
if(input==2){
printf("DIU means DAffodil International University\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}
}

}
else if(input==2){
printf("Welcome to Chattogram\n");
printf("1.Cox,Bazar\n2.Shitakondo \n");
scanf("%d",&input);
if(input==1){
printf("This is nice sea\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}

}
if(input==2){
printf("Shitakondo is a beautiful place\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}
}

}
else if(input==3){
printf("Welcome to Rajshahi\n");
printf("1.University\n2.Town \n");
scanf("%d",&input);
if(input==1){
printf("Rajshahi university ia big university.\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}

}
if(input==2){
printf("This is nice town\n\n");
printf("Do you want to visit more places!! If Yes press 1 or Exit Press 2\n");
scanf("%d",&input);
if(input==1){

goto mm;
}
else if(input==2){

exit(0);
}
}

}
else{

printf("Wrong input !!! plz enter 1 or 2 or 3\n");
goto mm;
}

return 0;
}