Skip to main content

Posts

Showing posts with the label C Language

Hackerrank Playing With Characters Solution in c

 Hackerrank Playing With Characters Solution in c Watch Video: Code:: #include   < stdio.h > #include   < string.h > #include   < math.h > #include   < stdlib.h > int  main()  {      /* Enter your code here. Read input from STDIN. Print output to STDOUT */           //first step is to create variables      char  ch; //character      char  s[ 128 ]; //for string with maximum size i.e 128      char  sen[ 128 ]; //sentence           //second step for scanning     scanf( "%c" ,&ch); //for charaacter     scanf( "%s\n" ,&s); //for string     scanf( "%[^\...