How can I write a program that uses two input statements to get two words as inputtThen, print the words on one line separated by a space on edhesive.com
Answers
Answered by
0
Answer:
I hope this is right
Explanation:
#include<studio.h>
main()
{
char name[5];
char city[9];
printf("Enter your name:");
gets(name);
printf("\nEnter your city:");
gets(city);
printf ("\n\t %s%s", name,city);
}
Similar questions
Social Sciences,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
English,
1 year ago