Posts

Showing posts from January, 2021

C Program to Check Palindrome string.

    C PROGRAM TO CHECK PALINDROME ( string )   Palindrome:   A palindrome is a word, phrase, or sentence that reads the same in both backward and forward directions for example "level".  In other words,  A  string  is said to be a  palindrome  if the  string  read from left to right is equal to the  string  read from right to left. # include <stdio.h> # include <string.h> int main () {        int i, l, rev = 0 ;      char string[ 250 ];      printf ( "Enter a string: " );    scanf ( "%s", string );      l = strlen (string);      for ( i = 0 ; i < l; i++ ) {           if (string[i] != string[l-i- 1 ]){              rev = 1 ;                break;           }    } if (rev == 1){         printf ( "Entered string is not a Palindrome." ); } else {      printf ( "Entered string is a Palindrome." ); }      return 0 ; } Output Enter a string: solos Entered string is a Palindrome. How the program works? T

Responsive Navigation Bar using Only HTML and CSS

Image
Responsive Navigation Bar NavBar Demo 👇 (Try to adjust your screen size to see responsiveness, Thank You!) NavBar LOGO HOME ABOUT SKILLS GALLERY CONTACT ME HTML: <!--RESPONSIVE NAVBAR--> <!DOCTYPE html> < html lang =" en " dir =" ltr "> < head >      < meta charset =" utf-8 " >      < meta name =" viewport " content =" width=device-width, initial-scale=1.0 ">      < title > NavBar </ title >      < link rel =" stylesheet " href =" styles.css ">      < script src =" https://kit.fontawesome.com/a076d05399.js "></ script > </ head > < body >      < label for =" logo "> < a href =" #home " clas