Menu
Coddy logo textTech

Multiply the word

Lesson 8 of 20 in Coddy's Beginner Challenges - Practice Basic Concepts course.

challenge icon

Challenge

Easy

Write a function named mulWord that gets a string s and an integer n and returns the string n times with space between each.

Try it yourself

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char* mulWord(char* s, int n) {
    // Write code here
}

All lessons in Beginner Challenges - Practice Basic Concepts