Program 2
Program 2
4. SOURCE CODE:
#include<stdio.h>
#include<conio.h>
void main()
{
char name[50]=”Devanshu”;
char fname[30]=”Mr Yash Pal”;
char course[10]=”BCA”;
char dob[20]=”12/10/2007”;
int rollno=35;
int sem=1;
5. OUTPUT:
DEVANSHU 1324035
PROGRAM NO.2
1. STATEMENT:
Write a program to display your Name, Father Name, Class,
Semester and DOB using the given instructions a) Write
comments to make your program readable b) Use descriptive
variables in your program.
2. ALGORITHM:
Step1: Start
Step2: Declare variables Name, Roll No, Semester, Father
Name, Class and DOB.
Step3: Initialize the variables
Step4: Print the output
Step5: Stop
3. FLOW CHART:
START
Declare Variables
Output Information
STOP