Answer to Question #274430 in C for Asif

Question #274430

1. Write a C program to print your name, date of birth, mobile numbers and university's name on separate line.

1
Expert's answer
2021-12-02T18:35:40-0500


#include <stdio.h>


int main()
{
    char name [50];
    char dateofbirth [50];
    char mobilenumber [50];
    char universityname [50];
    
    printf("\nEnter your name: ");
    scanf("%s",name);
    printf("\nEnter your date of birth: ");
    scanf("%s",dateofbirth);
    printf("\nEnter your mobile number: ");
    scanf("%s",mobilenumber);
    printf("\nEnter your university name: ");
    scanf("%s",universityname);
    
    printf("\nName: %s",name);
    printf("\nDate of birth: %s",dateofbirth);
    printf("\nMobile number: %s",mobilenumber);
    printf("\nUniversity name: %s",universityname);


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS