If condition
IF CONDITION
Decision making statement are used to jump or execute a group of statement. If condition is used to execute or skip a group of statment for a condition
syntax
if(condition)
{
statement block;
}
other statement;
flow chart for if condition
Example code for if condition in [c-program]
#include< stdio.h > /* header file */
#include< conio.h > /* header file */
void main() /* main function start*/
{
int a=10,b;
clrscr();
if(a==10)
{
b=a+a;
}
printf("%d",b);
getch();
}
youtube tutorial
Comments
Post a Comment