Skip to main content

Posts

Showing posts from February, 2018

C programming #3.

Hello, friends, I am back with another post of  'C' programming. CONTROL STATEMENT IN 'C'. -It is of two types conditional control statement unconditional control statement Conditional C.S- Decision making/ selection- If-else and switch statement looping/ iterative- for, while and do-while. Unconditional C.S- goto break continue return Now I am going further with an explained way of each for better understanding. Syntax of if-else statement if (condition) {   statement 1; } else  { statement 2; } - If else statement is a bidirectional statement that has following variants. multiple ifs if-else nested if-else else if ladder dangling if else  -Multiple ifs syntax- if (condition) { statement 1; } if (condition) { statement 2; { if (condition) { statement 3; } else { statement 4; } Q. How to find a number is odd or even or negative using multiple ifs? #inclu...