w3resource logo

:

C Programming Exercises

C Exercises: Print your name, date of birth, and mobile number

C Basic Declarations and Expressions: Exercise-1 with Solution

Write a C program to print your name, date of birth. and mobile number.

C Code:

#include <stdio.h> 
 int main()  
  {
     printf("Name   : Alexandra Abramov\n"); 
     printf("DOB    : July 14, 1975\n"); 
     printf("Mobile : 99-9999999999\n"); 
     return(0); 
  }

Sample Output:

Name   : Alexandra Abramov                                             
DOB    : July 14, 1975                                                 
Mobile : 99-9999999999 

Solution

Improve this sample solution and post your code through Disqus