1
12kviews
Write a C program which will print the list of all patients with given disease.

A Hospital needs to maintain details of patients. Details to be maintained are: First name, Middle name, Surname, Date of Birth, Disease.

Mumbai university > FE > SEM 2 > Structured Programming Approach

Marks: 10M

Year: May 2014

1 Answer
0
687views

Program code:

#include<stdio.h>
#include<conio.h>
struct patient{
int dob;
char Fname[10], Mname[10], Lname[10], disease[10];
} pt[10] ;
int main(){
int i, n ;

printf("Enter the Number of Patients: ");
scanf("%d", &n) ;

for(i = 0 ; i < n ; i++) {
printf("\t\t\tPatient's Details:\n");
printf("\nEnter the Patients DOB: ");
scanf("%d", &pt[i].dob); …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.