Professional Documents
Culture Documents
Experiment Number - 3.2 Student Name - Aman Kumar Student Uid - 21Bcs3224 Class and Group - Ph21Bcs413 - A' Semester - 1
Experiment Number - 3.2 Student Name - Aman Kumar Student Uid - 21Bcs3224 Class and Group - Ph21Bcs413 - A' Semester - 1
2
STUDENT NAME – Aman Kumar
STUDENT UID – 21BCS3224
CLASS AND GROUP -PH21BCS413- ‘A’
SEMESTER- 1st
the screen.
FLOWCHART/ ALGORITHM
Step 1 : Start.
Step 2 : Define the variable type inside structure.
Step 3 : Enter the name and detail of person.
Step 4 : Print the output entered by the user accordingly.
Step 5 : End.
PROGRAM CODE
#include<stdio.h>
struct personal {char name[20]; int day; char month[10]; int year;
float salary; };
int main()
printf("\nName-%s\nDay-%d\nMonth-%s\nYear-%d\nSalary-%.2f\
n",person.name, person.day, person.month, person.year,
person.salary);
OUTPUT
Apply various constructs, loops, functions to solve mathematical and scientific problem.
Design and develop modular programs for real world problems using control structure
and selection structure.