Question: What is wrong with my program?(C language) Thanks. Write a C-program that prints out a word as many times as specified. The number of repetitions

 What is wrong with my program?(C language) Thanks. Write a C-programthat prints out a word as many times as specified. The number

What is wrong with my program?(C language)

Thanks.

Write a C-program that prints out a word as many times as specified. The number of repetitions and the word should be given as input to the program. You may assume that the word has no more than 100 characters (be sure to also reserve space for the null terminator, \0, though!). Examples Input: 2 Hello Output: Hello Hello Input: 4 thing Output: thing thing thing thing Note You may submit as many solutions as you wish. Only your highest score will be kept. Codel X 1 #include 2 - int main(void) { 3 int time, i; 4 char word; 5 scanf("%d %s", &time, word); for(i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!