Â
In this, we are going to make a program that reads two words at a time and prints it again in C Programming Language.Â
//Program to read a two words and print them.
#include <stdio.h>
#include <string.h>
int main()
{
char s1[50], s2[50];
printf("Enter two Strings:\n");
scanf("%s %s", &s1, &s2); //input string
printf("First String is : %s \nSecond String is: %s\n", s1, s2); //print two strings
return 0;
}
//..........coded by ANANYA MAURYA
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP