Showing posts with label Interesting Code. Show all posts
Showing posts with label Interesting Code. Show all posts

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:

  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main()
  4. {
  5. int ch;
  6. char m;
  7. printf("\t\t\t WHAT`S YOUR LIFE!\n");
  8. 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!");
  9. do
  10. {
  11. 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:-");
  12. scanf("%d",&ch);
  13. switch(ch)
  14.     {
  15. case 1: 
  16.     printf("\n\nHow do I know your past! Are you stupid !!!");
  17.      
  18. break;
  19.      
  20.       case 2: 
  21.       printf("\n\nYou know your present better than me!");
  22.      break;
  23.      
  24.       case 3: 
  25.        printf("\n\nSORRY!! Nobody can know your future!! but you`ll be a good one.!!");
  26.      break;
  27.      default:
  28.       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.");
  29.                }
  30.                printf("\n\ndo you want to know more about you!!press y ");
  31.                scanf("%s",&m);
  32.    }while(m == 'y'||m =='y');
  33.    
  34.    printf("\n\t I`m sorry for waste your precious time!");
  35.    
  36. getch() ;
  37. }

Output:


1st part of output
1st part of Output

2nd output.
2nd part of Output