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.


Input output function, data types, string


  • 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


Leave a Reply

%d bloggers like this: