we all spend time busy at work, if we do something fun, it will help us a lot mentally and will encourage us later.
So this is also a fun program that I think can give you a little fun.
Source Code:
- #include<stdio.h>
- #include<conio.h>
- int main()
- {
- int ch;
- char m;
- printf("\t\t\t WHAT`S YOUR LIFE!\n");
- printf("\n The ultimate purpose of life is peace because only a peaceful mind and heart can be full of love and compassion.\nlife is awesome but here you can get an interesting fact for you, watch more.\n\n\t\t\t\t\tthank you!");
- do
- {
-
- printf("\n Press 1 to your know past\n Press 2 to know your present\n Press 3 to know your future\n what `s your choice:-");
- scanf("%d",&ch);
- switch(ch)
- {
- case 1:
- printf("\n\nHow do I know your past! Are you stupid !!!");
-
- break;
-
- case 2:
- printf("\n\nYou know your present better than me!");
- break;
-
- case 3:
- printf("\n\nSORRY!! Nobody can know your future!! but you`ll be a good one.!!");
- break;
- default:
- printf("\n\nWho are you? enlist your name to Dr.gour pagla choodi Das!!\n\n\t\t\t\t\t reffered by sohaib aktar.");
- }
- printf("\n\ndo you want to know more about you!!press y ");
- scanf("%s",&m);
- }while(m == 'y'||m =='y');
-
- printf("\n\t I`m sorry for waste your precious time!");
-
- getch() ;
- }
Output:
 |
1st part of Output
|
 |
2nd part of Output |
0 comments:
Post a Comment