Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

please explain conditional statements usage.

0 votes
asked Nov 28, 2017 by anonymous

2 Answers

0 votes
answered Nov 29, 2017 by Virginia DDaniels (260 points)
Basically condition statements are “If” clauses. Conditional tenses are highly used for speculate such as what could happen and what might have happened. Many conditional forms in English are used in condition sentences. Condition clause is used for present and past. If + simple present, If + simple past this way to make a sentence in condition form.
0 votes
answered Jan 8, 2018 by sruthi n (220 points)
the name conditional statement itself states that if the given condition is satisfied the statements should execute

example:

void main()

{

int i;

printf("enter a number");

scanf("%d",&i);

if(i==2)

{

printf("hello");

}

}

in the above program the output will be hello if and only if u give 2 as input
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...