Skip to content

Commit

Permalink
input and output of character, word and sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudhakar17 committed Mar 28, 2020
1 parent 1a1281c commit c40c5f5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hackerrank/02_playing_with_characters.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#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 */
char ch;
char s[10];
char sen[100];
scanf("%c",&ch);
scanf("%s", s);
scanf("\n");
scanf("%[^\n]%*c", sen);
printf("%c\n%s\n%s",ch,s,sen);

return 0;
}

0 comments on commit c40c5f5

Please sign in to comment.