Check whether given number is perfect OR not.

សម្ព័ន្ធភាព៖ Isra University
ដំណោះស្រាយ៖ Individual, Group
រយៈពេល៖ មួយទៅពីរម៉ោង

ទិដ្ឋភាពទូទៅ


គោលដៅ

The objective of this activity is to check whether given number is perfect or not.

វត្ថុបំណងការសិក្សា

After the activity, students will be able to: • How to use Conditional Statements (if, if else and if else if). • How to use control statements(for, while and do while).

បរិបទ

Conditional Statements in programming are used to make decisions based on the conditions. Conditional statements execute sequentially when there is no condition around the statements. If you put some condition for a block of statements, the execution flow may change based on the result evaluated by the condition. This process is called decision making. Control statements are elements in the source code that control the flow of program execution. They include blocks using { and } brackets, loops using for, while and do while, and decision-making using if and switch.