Entrance Announcement
MICTE 2080
2080 Magh 07
User:Rakesh Agrahari/lesson Plan 4
Jump to navigation
Jump to search
| Subject : Programming with C | Class: BICT 1rd Semester |
| Period: First | Unit: One |
| Topic: Using Function in C | Time: 10 min |
| Teaching Item: Function in C |
SPECIFIC OBJECTIVES[edit | edit source]
At the completion of this topic students will be able to:
- Write a program in C using function with new example i.e (calculate area of room)
TEACHING MATERIALS[edit | edit source]
- Daily materials
- White Board
- Marker
- Computer for practical work
TEACHING LEARNING ACTIVITIES[edit | edit source]
1. Previous program will be explained
2. The following program will be explained.
#include<stdio.h>
#include<conio.h>
void area(); // declaring a function
void main()
{
area(); // calling a function.
}
void area()
{
int l,b,a;
printf("Enter length & breadth");
scanf("%d %d",&l,&b);
a=l*b;
printf("The area of room is %d",a);
}
EVALUATION[edit | edit source]
- What else we can use instead of a variable