|
|
| Line 1: |
Line 1: |
|
| |
|
| <div style="column-count: 2; column-gap: 20px;">
| |
| '''Subject:''' C programing
| |
|
| |
| '''Period:''' first
| |
|
| |
| '''Topic:''' introduction of programing language
| |
|
| |
| '''Teaching Item:''' If else statement
| |
|
| |
| '''Class:''' BICT 1st semester
| |
|
| |
| '''Unit:''' One
| |
|
| |
| '''Time:''' 15 min
| |
|
| |
| '''No. of Students:''' 10
| |
| </div>
| |
|
| |
| == Objectives ==
| |
| At the end of this lesson, students will be able to
| |
|
| |
| # To define If else statement with Example.
| |
| # To Print a basic If else statement in turboo C++
| |
|
| |
| == Teaching Materials ==
| |
|
| |
| * PowerPoint presentation
| |
| * Daily materials
| |
| * Turboo c++ installed computers
| |
|
| |
| == Teaching Learning Activities ==
| |
|
| |
| # Introduce today's topic with students.
| |
| # Revise necessary topics required to learn previous topics.
| |
| # I will explain the If else statement.
| |
| # I will demonstrate basic if else statement in Turboo c++
| |
| ## #include<stdio.h>
| |
| ## '''int''' main(){
| |
| ## '''int''' number=0;
| |
| ## printf("Enter a number:");
| |
| ## scanf("%d",&number);
| |
| ## '''if'''(number%2==0){
| |
| ## printf("%d is even number",number);
| |
| ## }
| |
| ## '''return''' 0;
| |
| ## }
| |
| <p style="color:red;"> add example here </p>
| |
| == Classroom Assessment ==
| |
|
| |
| # Write a program to check positive number using if else statement .
| |