filmov
tv
lec 25 do While loop and for loop in c++ with examples

Показать описание
int this video we can explain how to use do while and for in c++ with examples
link for data
and the following program is explained in this video
Do while
1. Write a program input number and display its palindrome or not
2. Write a program input number and display Armstrong or not
3. Write a program input number and display its sum of all digit
4. Write a program input number until enter –tive value and find 2nd maximum value
For
1. Write a program to add and display 1st 20 even number
2. Write a program input number and display it's perfect or not
3. Write a program input number print its prime or not
4. Print sequence 1 3 5 7 9…….99
5. Print sequence 1 4 9 16 25 100
link for data
and the following program is explained in this video
Do while
1. Write a program input number and display its palindrome or not
2. Write a program input number and display Armstrong or not
3. Write a program input number and display its sum of all digit
4. Write a program input number until enter –tive value and find 2nd maximum value
For
1. Write a program to add and display 1st 20 even number
2. Write a program input number and display it's perfect or not
3. Write a program input number print its prime or not
4. Print sequence 1 3 5 7 9…….99
5. Print sequence 1 4 9 16 25 100