#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<time.h>
main()
{
char user_name[30];
time_t t;
t = time(NULL);
struct tm tm = *localtime(&t);
printf("Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\t\t\t\t\t****** C Mini Project Work %d ****** \n ",tm.tm_year+1900);
printf(" \t\t\t\t\t By \n ");
printf(" \t\t\t\t\t\t Md. Samir Safi\n ");
printf(" \t\t\t\t\t\t Grade - XI'K'\n ");
printf(" \t\t\t\t\t\tUnder guidance of \n ");
printf(" \t\t\t\t\t\tEr. Purushottam Lal Karn\n\n ");
printf("Enter your name : ");
gets(user_name);
aa:
system("cls");
printf("Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\t\t ********************************************************************************\n ");
printf("\t\t\t\t WELCOME %s TO ABOUT OUR COUNTRY NEPAL INFO SYSTEM \n",user_name);
printf("\t\t ********************************************************************************\n ");
printf("\t\t\t Enter 1 for Provinve-1\n");
printf("\t\t\t Enter 2 for Provinve-2\n");
printf("\t\t\t Enter 3 for Provinve-3\n");
printf("\t\t\t Enter 4 for Provinve-4\n");
printf("\t\t\t Enter 5 for Provinve-5\n");
printf("\t\t\t Enter 6 for Provinve-6\n");
printf("\t\t\t Enter 7 for Provinve-7\n\n");
int choice;
printf("\t\t\t Enter your choice ::::: ");
scanf("%d",&choice);
switch(choice)
{
case 1:
system("cls");
printf(" \t\tDate: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Province No. 1 is the easternmost of the seven provinces established \n");
printf(" by the new constitution of Nepal which was adopted on 20 September 2015. \n");
printf(" The province covers an area of 25,905 km2, about 17.5% of the country's \n");
printf(" total area. With the industrial city of Biratnagar as its headquarter, \n");
printf(" the province covers other major eastern towns including Damak, Dharan, \n");
printf(" Itahari, Inaruwa and Birtamod and includes several mountains including \n");
printf(" the Everest, Kanchenjunga, and Ama Dablam. Koshi – the largest river \n");
printf(" of the nation, circumvents the province's western boundary. Adhering to \n");
printf(" the first-past-the-post voting system issued by the Constituency Delimitation \n");
printf(" Commission, the province hosts 28 parliamentary seats and 56 provincial seats.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 2:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Province No. 2 is a province in the southeastern region of Nepal\n");
printf(" that was formed after the adoption of the Constitution of Nepal. It is \n");
printf(" Nepal's second most populous province,[3] and smallest province by area. \n");
printf(" It borders Province No. 1 to the east, Bagmati Province to the north, and \n");
printf(" India to the south. It has an area of 9,661 km2 (3,730 sq mi)-about 6.5% \n");
printf(" of the country's total area. It has a population of 5,404,145 as per the \n");
printf(" 2011 Census of Nepal, making it the most densely populated province of Nepal.\n\n");
printf(" The Koshi River and Koshi Tappu Wildlife Reserve acts as provincial demarcation \n");
printf(" border between Province No. 2 and Province No. 1 in the east. And the demarcation \n");
printf(" line between Chitwan National Park and Parsa National Park (previously Wildlife \n");
printf(" Reserve) acts as provincial demarcation border between Province No. 2 and Bagmati \n");
printf(" Province in the west. ");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 3:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Bagmati Province is one of the seven provinces of Nepal established \n");
printf(" by the constitution of Nepal.[3] The province is Nepal's most populous \n");
printf(" province and fifth largest province by area. Bagmati is bordered Tibet Autonomous \n");
printf(" Region of China to the north, Gandaki Province to the west, Province No. 1 to the\n");
printf(" east, Indian state of Bihar and Province No. 2 to the south. With Hetauda as its\n");
printf(" provincial headquarter,[4] the province is the home to the country's capital \n");
printf(" Kathmandu, is mostly hilly and mountainous, and hosts mountain peaks including\n");
printf(" Gaurishankar, Langtang, Jugal, and Ganesh. \n\n");
printf(" Being the most populous province of Nepal, it possesses rich cultural diversity with \n");
printf(" resident communities and castes including Newar, Tamang, Madhesis, Sherpa, Tharu, \n");
printf(" Chepang, Jirel, Brahmin, Chhetri and more.[5] It hosted the highest number of voters \n");
printf(" in the last election for the House of Representatives and Provincial Assembly, which \n");
printf(" took place in 2017.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 4:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Gandaki Province is one of the seven federal provinces established by the \n");
printf(" current constitution of Nepal which was promulgated on 20 September 2015. Pokhara\n");
printf(" is the province's capital city. It borders the Tibet Autonomous Region of China to\n");
printf(" the north, Bagmati Province to the east, Karnali Province to the west, and Lumbini\n");
printf(" Province and Bihar of India to the south. The total area of the province is 21,504 sq. km \n");
printf(" about 14.57% of the country's total area. According to the latest census, \n");
printf(" the population of the province was 2,403,757.[2] The newly elected Provincial \n");
printf(" Assembly adopted Gandaki Province as the permanent name by replacing its initial \n");
printf(" name Province no. 4 in July 2018. Krishna Chandra Nepali is the present chief \n");
printf(" minister of Gandaki province. \n");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 5:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Lumbini Province is one of the seven provinces established by the \n");
printf(" constitution of Nepal. The province is Nepal's fourth most populous \n");
printf(" province and third largest province by area. Lumbini is bordered Gandaki\n");
printf(" Province and Karnali Province to the north, Sudurpashchim Province to \n");
printf(" the west, Uttar Pradesh and Bihar of India to the south. Lumbini is \n");
printf(" one of the two Nepalese provinces to have an international border only \n");
printf(" with India. Lumbini's capital, Deukhuri, is near the geographic centre \n");
printf(" of the province; it's a small town which is currently being developed \n");
printf(" to meet the prerequisite of provincial capital. The major cities in \n");
printf(" this province are Butwal and Siddharthanagar in Rupandehi District, \n");
printf(" Nepalgunj in Banke District, Tansen in Palpa District, and Ghorahi \n");
printf(" and Tulsipur in Dang District.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 6:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Karnali Province is one of the seven federal provinces of Nepal \n");
printf(" formed by the new constitution which was adopted on 20 September 2015. \n");
printf(" The total area of the province is 27,984 square kilometres (10,805 sq mi) \n");
printf(" covering 18.97% of the country, making it the largest province in Nepal. \n");
printf(" According to the 2011 Nepal census, the population of the province was \n");
printf(" 1,570,418, making it the least populous province in Nepal. It borders \n");
printf(" the Tibet Autonomous Region of China to the north, Gandaki Province to \n");
printf(" the east, Sudurpashchim Province to the west, and Lumbini Province to \n");
printf(" the south.[2] Birendranagar with a population of 47,914 is both the \n");
printf(" province's capital and largest city. ");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 7:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Sudurpashchim Province (Far-West Province) is one of the seven \n");
printf(" provinces established by the new constitution of Nepal which was adopted \n");
printf(" on 20 September 2015.[1] It borders the Tibet Autonomous Region of China \n");
printf(" to the north, Karnali Province and Lumbini Province to the east, and the \n");
printf(" India's Kumaon to the west and Uttar Pradesh to the south. The province \n");
printf(" covers an area of 19,515.52 km2 - about 13.22% of the country's total \n");
printf(" area. Initially known as Province No. 7, the newly elected Provincial \n");
printf(" Assembly adopted Sudurpashchim Pradesh as the permanent name for the \n");
printf(" province in September 2018. As per a 28 September 2018 Assembly \n");
printf(" voting, the city of Godawari has been declared the capital of the Province. \n");
printf(" The province is coterminous with the former Far-Western Development Region, \n");
printf(" Nepal. The three major cities in terms of population and economy are Dhangadhi, \n");
printf(" Bhimdutta (Mahendranagar) and Tikapur.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
default:
system("cls");
printf("Sorry ! Wrong Choice. Enter the choice number between 1-7");
exit(0);
}
byebye:
system("cls");
printf(" Bye Bye %s ",user_name);
}
#include<conio.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#include<time.h>
main()
{
char user_name[30];
time_t t;
t = time(NULL);
struct tm tm = *localtime(&t);
printf("Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\t\t\t\t\t****** C Mini Project Work %d ****** \n ",tm.tm_year+1900);
printf(" \t\t\t\t\t By \n ");
printf(" \t\t\t\t\t\t Md. Samir Safi\n ");
printf(" \t\t\t\t\t\t Grade - XI'K'\n ");
printf(" \t\t\t\t\t\tUnder guidance of \n ");
printf(" \t\t\t\t\t\tEr. Purushottam Lal Karn\n\n ");
printf("Enter your name : ");
gets(user_name);
aa:
system("cls");
printf("Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\t\t ********************************************************************************\n ");
printf("\t\t\t\t WELCOME %s TO ABOUT OUR COUNTRY NEPAL INFO SYSTEM \n",user_name);
printf("\t\t ********************************************************************************\n ");
printf("\t\t\t Enter 1 for Provinve-1\n");
printf("\t\t\t Enter 2 for Provinve-2\n");
printf("\t\t\t Enter 3 for Provinve-3\n");
printf("\t\t\t Enter 4 for Provinve-4\n");
printf("\t\t\t Enter 5 for Provinve-5\n");
printf("\t\t\t Enter 6 for Provinve-6\n");
printf("\t\t\t Enter 7 for Provinve-7\n\n");
int choice;
printf("\t\t\t Enter your choice ::::: ");
scanf("%d",&choice);
switch(choice)
{
case 1:
system("cls");
printf(" \t\tDate: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Province No. 1 is the easternmost of the seven provinces established \n");
printf(" by the new constitution of Nepal which was adopted on 20 September 2015. \n");
printf(" The province covers an area of 25,905 km2, about 17.5% of the country's \n");
printf(" total area. With the industrial city of Biratnagar as its headquarter, \n");
printf(" the province covers other major eastern towns including Damak, Dharan, \n");
printf(" Itahari, Inaruwa and Birtamod and includes several mountains including \n");
printf(" the Everest, Kanchenjunga, and Ama Dablam. Koshi – the largest river \n");
printf(" of the nation, circumvents the province's western boundary. Adhering to \n");
printf(" the first-past-the-post voting system issued by the Constituency Delimitation \n");
printf(" Commission, the province hosts 28 parliamentary seats and 56 provincial seats.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 2:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Province No. 2 is a province in the southeastern region of Nepal\n");
printf(" that was formed after the adoption of the Constitution of Nepal. It is \n");
printf(" Nepal's second most populous province,[3] and smallest province by area. \n");
printf(" It borders Province No. 1 to the east, Bagmati Province to the north, and \n");
printf(" India to the south. It has an area of 9,661 km2 (3,730 sq mi)-about 6.5% \n");
printf(" of the country's total area. It has a population of 5,404,145 as per the \n");
printf(" 2011 Census of Nepal, making it the most densely populated province of Nepal.\n\n");
printf(" The Koshi River and Koshi Tappu Wildlife Reserve acts as provincial demarcation \n");
printf(" border between Province No. 2 and Province No. 1 in the east. And the demarcation \n");
printf(" line between Chitwan National Park and Parsa National Park (previously Wildlife \n");
printf(" Reserve) acts as provincial demarcation border between Province No. 2 and Bagmati \n");
printf(" Province in the west. ");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 3:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Bagmati Province is one of the seven provinces of Nepal established \n");
printf(" by the constitution of Nepal.[3] The province is Nepal's most populous \n");
printf(" province and fifth largest province by area. Bagmati is bordered Tibet Autonomous \n");
printf(" Region of China to the north, Gandaki Province to the west, Province No. 1 to the\n");
printf(" east, Indian state of Bihar and Province No. 2 to the south. With Hetauda as its\n");
printf(" provincial headquarter,[4] the province is the home to the country's capital \n");
printf(" Kathmandu, is mostly hilly and mountainous, and hosts mountain peaks including\n");
printf(" Gaurishankar, Langtang, Jugal, and Ganesh. \n\n");
printf(" Being the most populous province of Nepal, it possesses rich cultural diversity with \n");
printf(" resident communities and castes including Newar, Tamang, Madhesis, Sherpa, Tharu, \n");
printf(" Chepang, Jirel, Brahmin, Chhetri and more.[5] It hosted the highest number of voters \n");
printf(" in the last election for the House of Representatives and Provincial Assembly, which \n");
printf(" took place in 2017.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 4:
system("cls");
printf(" \t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Gandaki Province is one of the seven federal provinces established by the \n");
printf(" current constitution of Nepal which was promulgated on 20 September 2015. Pokhara\n");
printf(" is the province's capital city. It borders the Tibet Autonomous Region of China to\n");
printf(" the north, Bagmati Province to the east, Karnali Province to the west, and Lumbini\n");
printf(" Province and Bihar of India to the south. The total area of the province is 21,504 sq. km \n");
printf(" about 14.57% of the country's total area. According to the latest census, \n");
printf(" the population of the province was 2,403,757.[2] The newly elected Provincial \n");
printf(" Assembly adopted Gandaki Province as the permanent name by replacing its initial \n");
printf(" name Province no. 4 in July 2018. Krishna Chandra Nepali is the present chief \n");
printf(" minister of Gandaki province. \n");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 5:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Lumbini Province is one of the seven provinces established by the \n");
printf(" constitution of Nepal. The province is Nepal's fourth most populous \n");
printf(" province and third largest province by area. Lumbini is bordered Gandaki\n");
printf(" Province and Karnali Province to the north, Sudurpashchim Province to \n");
printf(" the west, Uttar Pradesh and Bihar of India to the south. Lumbini is \n");
printf(" one of the two Nepalese provinces to have an international border only \n");
printf(" with India. Lumbini's capital, Deukhuri, is near the geographic centre \n");
printf(" of the province; it's a small town which is currently being developed \n");
printf(" to meet the prerequisite of provincial capital. The major cities in \n");
printf(" this province are Butwal and Siddharthanagar in Rupandehi District, \n");
printf(" Nepalgunj in Banke District, Tansen in Palpa District, and Ghorahi \n");
printf(" and Tulsipur in Dang District.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 6:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Karnali Province is one of the seven federal provinces of Nepal \n");
printf(" formed by the new constitution which was adopted on 20 September 2015. \n");
printf(" The total area of the province is 27,984 square kilometres (10,805 sq mi) \n");
printf(" covering 18.97% of the country, making it the largest province in Nepal. \n");
printf(" According to the 2011 Nepal census, the population of the province was \n");
printf(" 1,570,418, making it the least populous province in Nepal. It borders \n");
printf(" the Tibet Autonomous Region of China to the north, Gandaki Province to \n");
printf(" the east, Sudurpashchim Province to the west, and Lumbini Province to \n");
printf(" the south.[2] Birendranagar with a population of 47,914 is both the \n");
printf(" province's capital and largest city. ");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
case 7:
system("cls");
printf("\t\t Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf(" Sudurpashchim Province (Far-West Province) is one of the seven \n");
printf(" provinces established by the new constitution of Nepal which was adopted \n");
printf(" on 20 September 2015.[1] It borders the Tibet Autonomous Region of China \n");
printf(" to the north, Karnali Province and Lumbini Province to the east, and the \n");
printf(" India's Kumaon to the west and Uttar Pradesh to the south. The province \n");
printf(" covers an area of 19,515.52 km2 - about 13.22% of the country's total \n");
printf(" area. Initially known as Province No. 7, the newly elected Provincial \n");
printf(" Assembly adopted Sudurpashchim Pradesh as the permanent name for the \n");
printf(" province in September 2018. As per a 28 September 2018 Assembly \n");
printf(" voting, the city of Godawari has been declared the capital of the Province. \n");
printf(" The province is coterminous with the former Far-Western Development Region, \n");
printf(" Nepal. The three major cities in terms of population and economy are Dhangadhi, \n");
printf(" Bhimdutta (Mahendranagar) and Tikapur.");
printf("\n\n");
puts("\n\n Press Y to start again");
puts(" Press any key to exit ");
if (toupper(getch())=='Y')
goto aa;
else
goto byebye;
break;
default:
system("cls");
printf("Sorry ! Wrong Choice. Enter the choice number between 1-7");
exit(0);
}
byebye:
system("cls");
printf(" Bye Bye %s ",user_name);
}