Save time and save paper and protect the environment
Explanation:
There are three types of loops in programming languages which are as following:-
- for.
- while.
- do while.
The syntax for all the three loops is different.You will see mostly for loop used with the arrays because they are easy to implement.
the syntax of for loop is :-
for(int i=initial value;condition;i++)
{
body
}
In for loops you only have to write the conditions in only line else is the body of the loop.
for example:-
for array of size 50 printing the each element
for(int i=0;i<50;i++)
{
cout<<arr[i]<<" ";
}
You have to initialize i with 0 and the condition should be i<size of the array and then increase the counter.
Swiping and pinching are graphical user interface (gui) to zoom in or zoom out. <span>One of the many multitouch gestures on today's laptops is the ability to </span>pinch<span> two fingers to </span>zoom<span> in and </span>out<span> in a window. </span>
Answer:
input-year taken 2020
2020 is divisible by 2
output- 2020 is a leap year