Posts

Showing posts from March, 2021

delete vowel from sentence

  // to delete vowel from sentence #include <stdio.h> #include <string.h> int  main() {      int  i, l= 0 ;      char  a[ 100 ];     printf( "enter the string\n" );     gets(a);      for (i= 0 ; a[i]!= '\0' ; i++)     {          if  (a[i]== 'a' ||a[i]== 'A' ||a[i]== 'e' ||a[i]== 'E' ||a[i]== 'i' ||a[i]== 'I' ||a[i]== 'o' ||a[i]== 'O' ||a[i]== 'u' ||a[i]== 'U' )         {            printf( "" );         }          else         {                          printf( "%c" , a[i]);         }                       }      return   0 ; }

nesting of switch in c language

  #include <stdio.h> int  main() {      int  num;      char  ch;     printf( "enter the number \n" );     scanf( "%d" , &num);      switch  (num)     {      case   1 :printf( "enter the character\n" );            scanf( "%c" , &ch);            scanf( "%c" , &ch);             switch  (ch)            {             case   'R' :                printf( "RED" );                 break ;             case   'B' :                printf( "BLUE" );                 break ;                         default :printf( "wrong character" );                 break ;            }                   break ;           case   2 :printf( "enter the character\n" );            scanf( "%c" , &ch);            scanf( "%c" , &ch);             switch  (ch)            {             case   'R' :                printf( "RAT" );                 break ;     

good question

  #include <stdio.h> int  main() {     char  a[ 100 ];     int  i, l= 0 ;    printf( "enter the string\n" );    gets(a);     for (i= 0 ; a[i]!= '\0' ; i++)     {         l++;     }     printf( "now it s time to reverse the array\n" );      for (i=l- 1 ; i>= 0 ; i--)     {         printf( "%c" , a[i]);     }          return   0 ; }

very importent question on string in c language

 #include<stdio.h> int main() {    char a[100];    int i, l=0;    printf("enter the string\n");    gets(a);    for(i=0; a[i]!='\0'; i++)     {         l++;     }     printf("now it s time to reverse the array\n");     for(i=l-1; i>=0; i--)     {         printf("%c", a[i]);     }         return 0; }
 HTML CODE FOR VIDEO INSIDE THE WEBSITE <! 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 > video </ title > </ head > < body >      < div >         < video   src = "maddyshailesh.mp4"   controls   width = "523"   autoplay   > </ video >      </ div > </ body > </ html >