Posts

Showing posts from September, 2021

A SIMPLE TYPE MENUS IN HTML || HOME OF A BLOG

<! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > navigation </ title >      < style >          .navbar  {              box-sizing :  border-box ;              border :  2 px   solid   rgb ( 202 ,  109 ,  109 ) ;              border-radius :  10 px ;              background-color ...

RANDOM NUMBER GENERATING GAME IN CPP

RANDOM  NUMBER GENERATING  GAME IN CPP  int number, guess, ngusses = 1;   //  ngusses will count your atttepts ;   // guess : you have to guess  an interger number ;   srand (time (0));   /* it will take some time for giving a      random number or for generating a number */   number = rand () % 100 + 1;   // it will show a random number ;   cout << " Enter a number  between 1 to 100" << endl;   do     {       cin >> guess;       if (guess > number) cout << " please enter lower number" << endl;       else if (guess < number) cout << " please enter higher number " << endl;       else cout << " You won the game in " << endl;       cout << ngusses << " attempts" << endl;       ngusses++;     }   while (guess !...