Computer Science, asked by sravyamacherla08, 4 months ago

Write a program to accept the student details (Name, Roll no, Father Name and
Mother Name) and display the same.

Answers

Answered by susobhanakhuli8537
0

Answer:

The answer is correct.

Explanation:

#include<stdio.h>

#include<conio.h>

main()

{

int i;

char n[100],fname[100],mname[100];

printf("\n Enter your name: ");

gets(n);

printf("\n Enter your Father name: ");

gets(fname);

printf("\n Enter your Mother name: ");

gets(mname);

printf("\n Enter your roll number: ");

scanf("%d",&i);

printf("\n Your Name is %s",n);

printf("\n Your Roll Number is %d",i);

printf("\n Your Father Name is %s",fname);

printf("\n Your Mother Name is %s",mname);

}

Answered by harshvirsing55
16

Answer:

Answer in Attachment.

Hope it will helps you.

Attachments:
Similar questions