our daily life, so a program without decision is an empty box.
()and else
program we can use the key word “If()”and “else ()”and you can also use
the C style
We
can also use”&&” for saying compiler “and” and for saying compiler or
we can use “or”
of if and else statement
statement is as follow:
type ((condition1 here) && (and
2 here)) and if you want to use “or” replace && with “or”
Statement
1 here ;
Statement
2 here ;
years old are you?" <<"\n" ;
"you can play foot ball easily";
"you can't play football";
You
can also use these programs by using operators. If you have any doubt you can
add pretences. Eg after declaring variables you can just type x=4 + y then the
x value will be 4+y’s value (but in the C’s typing style)
No comments:
Post a Comment