- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
3.4 – Odd Numbers Program (1 to 10) | Logic Mistake Explained | for Loop in C – New Series
Welcome to the C Programming – Complete Course (New Series) by Burle Sharma.
In this class (3.4), we write and analyze C programs to print all odd numbers between 1 and 10 using a for loop.
This video is very important because it focuses not only on writing programs, but also on identifying logical mistakes, which is a key skill for every programmer.
🔹 First, a program is written by incrementing the value by 2.
🔹 Students are intentionally asked to write the same program.
🔹 Then it is explained why this logic is wrong, as odd numbers between 1 and 10 get repeated 5 times.
🔹 After identifying the mistake, the correct program is written.
🔹 Finally, the most efficient approach is explained by using an if statement inside the loop.
The entire process includes expected output, dry run, and program execution to ensure complete clarity.
🎓 What you’ll learn in this video
🟢 How to print odd numbers using for loop
🟢 Common logical mistake while incrementing by 2
🟢 Why a program may compile but still be logically wrong
🟢 Correct way to print odd numbers between 1 and 10
🟢 Efficient use of if statement inside loop
🟢 Importance of dry run in understanding logic
🟢 How to analyze and correct programming mistakes
🧠 Key Learning Point
Writing a program is not enough. Understanding why a program is wrong is what makes you a good programmer.
#CProgramming #LearnC #BurleSharma #CProgrammingNewSeries #ForLoopInC #OddNumbersInC #LogicBuilding #IfInsideLoop #CPrograms #CBeginners#geecoding
Видео 3.4 – Odd Numbers Program (1 to 10) | Logic Mistake Explained | for Loop in C – New Series канала Burle Sharma (geecoding)
In this class (3.4), we write and analyze C programs to print all odd numbers between 1 and 10 using a for loop.
This video is very important because it focuses not only on writing programs, but also on identifying logical mistakes, which is a key skill for every programmer.
🔹 First, a program is written by incrementing the value by 2.
🔹 Students are intentionally asked to write the same program.
🔹 Then it is explained why this logic is wrong, as odd numbers between 1 and 10 get repeated 5 times.
🔹 After identifying the mistake, the correct program is written.
🔹 Finally, the most efficient approach is explained by using an if statement inside the loop.
The entire process includes expected output, dry run, and program execution to ensure complete clarity.
🎓 What you’ll learn in this video
🟢 How to print odd numbers using for loop
🟢 Common logical mistake while incrementing by 2
🟢 Why a program may compile but still be logically wrong
🟢 Correct way to print odd numbers between 1 and 10
🟢 Efficient use of if statement inside loop
🟢 Importance of dry run in understanding logic
🟢 How to analyze and correct programming mistakes
🧠 Key Learning Point
Writing a program is not enough. Understanding why a program is wrong is what makes you a good programmer.
#CProgramming #LearnC #BurleSharma #CProgrammingNewSeries #ForLoopInC #OddNumbersInC #LogicBuilding #IfInsideLoop #CPrograms #CBeginners#geecoding
Видео 3.4 – Odd Numbers Program (1 to 10) | Logic Mistake Explained | for Loop in C – New Series канала Burle Sharma (geecoding)
Комментарии отсутствуют
Информация о видео
9 февраля 2026 г. 17:31:14
00:20:58
Другие видео канала













![[Core Java] Class-18 : Display factors of a number #Count the number of factors](https://i.ytimg.com/vi/lvjgG3F86n4/default.jpg)






