Write a program in C to read multiple string and then print.
#include<stdio.h> #include<string.h> void main() { char str[100]; clrscr(); printf("enter a string:-"); gets(str); puts(str); getch(); }
Output:
Related programs:
- Write a program in C to find the number of characters in given string using pointer.
- Write a program in C to covert small letter to capital letter.
- Write a program in C to covert capital letter to small letter.
- Write a program in C to print month in word.
- Write a program in C to find the number of characters in given string.
0 Comments