syntax:The statement is any valid C’ language statement and the condition is any valid C’ language expression, frequently logical operators are used in the condition statement.
if(condition)
statement;
#include ' stdio.h ' void main ( ) { int numbers; printf (“Type a number:”); // message to the user scanf (“%d”, & number); // read number from standard input if (number < 0) // check whether number is negative //number number = - number; // If negative, convert it into //positive. Printf (“The absolute value is %d \n”,number); //print value }