BIO-DATA
AIM:
To write a C-program to print the bio-data.
ALGORITHM:
Step:1 Start the program.Step:2 Read name, father’s name, city, age.Step:3 Enter the details.Step:4 Print the details.Step:5 Stop the program.
PROGRAM:
#include<stdio.h>#include<conio.h>void main(){char name, fathername, city;int age;clrscr(); printf(“Enter the name:”);scanf(“%s”,name); printf(“\n Enter the father’s name:”);scanf(“%s”,fathername); printf(\n Enter the city”);scanf(“%s”,city); printf(“\n Enter the age:”);scanf(“%d”,&age); printf(“\n Name:%s”,Name); printf(“\n Father’s Name:%s”,fathername); printf(“\n City:%s”,city); printf(“\n Age:%d”,age);getch();}
RESULT:
Thus the C-program to print the bio-data had been executed and the output was verified.
Leave a Comment