Introduction to Loops_Exercise|Chapter 4, Class 10_SEBA, CBSE2025-26
Автор: Decode with Raj
Загружено: 2025-05-24
Просмотров: 233
Introduction to Loops_Exercise|Chapter 4, Class 10_SEBA, CBSE2025-26
In this video exercise of Chapter 4 : Introduction to L➿ps, is solved #coding_c #colspan #looping #loopingexercise
1. Why do we use a loop in a C program?
2. Do we need to use only one type of loop in a C program? Justify your answer by writing a C program.
3. What will happen if we write a while loop with 1 in place of the condition ? Try it in a simple C program. Hint:while (1){printf("We must raise our voice against corruption \n");}
4. Name different portions of a for loop. Can we put more than one statement within a portion?
5. Answer with TRUE or FALSE.
(i) If the condition of the while loop is false, the control comes to the second statement inside the loop.
(ii) We can use at most three loops in a single C program.
(iii) The statements inside the do-while loop executes at least once even if the condition is false.
(iv) Only the first statement inside the do-while loop executes when the condition is false.
(v) In a do-while loop, the condition is written at the end of the loop.
6. Programming exercises:
A. Write a C program to find the summation of the following series
(a). 12 + 22 + 32 + 42 + . . . + N2
(b). 13 + 23 + 33 + 43 + . . . + N3
(c). 1*2 + 2*3 + 3*4 + . . . + N*(N+1)
Coding Will be uploaded in my next video
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: