C program to print your name on screen

In this exercise, we will write code to print user entered input name on the console screen.

Pre-requisites:

Input output function, data types, string

Approach:

  • First declare the required variable i.e. string or character array

  • Use scanf() function to read entered name into string

  • Use printf() function to display name onto the screen

This program is similar to print a string

Program:

Leave a Reply

%d bloggers like this: