Menu
Coddy logo textTech

Greet

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

challenge icon

Challenge

Easy

Write a function named greet that gets a name as input and prints Hello, name .

Example,

  • greet("Bob")  ->  "Hello, Bob"

Try it yourself

#include <stdio.h>

void greet(char* name) {
    // Write code here
}

All lessons in Beginner Challenges - Practice Basic Concepts