Answer to Question #210139 in C for Nonii

Question #210139

Write a program which take input Name, Age, Height, Gender and print them by using   Escape Sequences and Format Specifiers.


1
Expert's answer
2021-06-23T17:07:06-0400


#include <stdio.h>


int main()
{
    char name [10];
    char gender [10];
    int age, height;
    printf("Enter name: ");
    scanf("%s",name);
    printf("Enter gender: ");
    scanf("%s",gender);
    printf("Enter age: ");
    scanf("%d",&age);
    printf("Enter height: ");
    scanf("%d",&height);
    
    printf("\nName: %s \nGender: %s \nAge: %d \nHeight: %d\n",name,gender,age,height );
    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