Question
Explain the use of followings in C++ programming with an example program for each.
(a) for
(b) :?
(c) ::
(d) while
Answer :
Word Count : 259
er-roman">
- If statement:-
If statement is used to check the condition between two operands. If condition is true statement is executed otherwise not executed.
Syntax of if statement
If (expression)
{
Statements;
}
EXAMPLE:-
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
a=4;
b=3;
- (a<b) ________ ______ ____ _______ _____ _____ _________ ______ ________ _______ _____ ___.
______ ____ ______ __________ _____ _______.
____ ________ _________ ____ _____ __________ _________ ____ _________ _________ ___ _____.
_______ _____ ______ ________ _______.
___ _________ _________ ____ ______ __________.
____ _____ _________ _______ _________ ____ _____ ______ ________.
__________ ____ ________ _________ ____ _________ ___ _______ ________ ______.
____ ____ __________ _____ _____ ______.
___ __________ _________ _______ _______ ______ ______ ______ ____ __________ ___ ______.
______ ____ __________ _______ _____ __________ __________ ________ ___ ____ ____ _______.
_______ _________ _____ _____ ______ __________ ________ _____ ___ _____ _____ ____.
_____ ________ _____ _________ _____ ___ _________.
___ ____ ______ ___ ______ ____ ______ _______ ______ __________.
_____ ________ _____ _____ ____ ________ _________.
__________ __________ ___ __________ _____ _____ ________.
___ _________ _____ ________ _______ ________ __________ __________ ____.
_____ ________ ____ ________ _______ ____ ___ _____ _______.
_________ ____ __________ _____ _____ ________ ____ ______.
_________ _______ ________ ____ ______ _____ _____ _____.
________ _______ _____ _______ ________ _________ ____ __________ _________.
________ ______ _______ _______ ___ __________ ____ _______.
_________ __________ ___ ___ __________ _______ _______.
___ ____ _______ _________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★