Posts

ENTER YOUR NUMBER AND SEE RESULT IN even and odd

  #include<iostream> using namespace std; int main () {   int n;   cout << " Enter your number and see result in odd or even " << endl;  cin>>n;   if (n % 2)     {       cout << "number is odd" << n;     }   else     {       cout << "number is even " << n;     }   return 0; }

ENTER USER MARKS AND GET RESULT IN GRADE IN CPP PROGRAM

  #include<iostream>  using namespace std;  int main(){      int marks;      cout<<"Enter your marks in your subject "<<endl;      cin>>marks;      if(marks>=85)      cout<<"A+"<<endl;      else if(marks>=75)      cout<<"A"<<endl;      else if(marks>=60)      cout<<"B+"<<endl;      else if(marks>=55)      cout<<"B"<<endl;      else if(marks>=40)      cout<<"c"<<endl;      else if(marks>=34)      cout<<"D"<<endl;      else      cout<<"fail"<<endl;            return 0;  }

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 !...

HTML PARAGRAPHS

  HTML PARAGRAPHS A paragraph always starts on a new line and is usually a block of text. HTML Paragraphs The HTML  <p>  element defines a paragraph. A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. < p > This is a paragraph. < /p > < p > This is another paragraph. < /p > < p > This paragraph contains a lot of lines in the source code, but the browser ignores it. < /p > < p > This paragraph contains a lot of spaces in the source code, but the browser ignores it. < /p > =============================================================

HTML HEADINGS

 HTML HEADINGS  HTML headings are titles or subtitles that you want to display on a webpage.

HTML ATTRIBUTES

 HTML ATTRIBUTES HTML attributes provide additional information about HTML elements.