Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Conditionals and Loops - Calculator Program

Kunal Kushwaha via YouTube

Overview

Coursera Plus Monthly Sale: All Certificates & Courses 40% Off!
Dive into a comprehensive Java programming tutorial focusing on conditionals and loops. Learn the syntax and application of if-else statements, for loops, while loops, and do-while loops. Apply your knowledge through practical exercises, including creating a calculator program. Explore advanced topics like finding the largest number, checking alphabet cases, generating Fibonacci numbers, counting occurrences, and reversing numbers. Enhance your problem-solving skills with hands-on coding examples and gain valuable insights for DSA interviews and placements. Access additional resources, including a complete Java DSA playlist and code repositories, to further your learning journey.

Syllabus

Introduction ‌‍‍‍‌‌‍‍ ‌‍‍‌‍ ‌‍‍‌‍‍‌‍ ‌‍‍‌‍‌‍‌ ‌‍‍‌‍‍‍‌ ‌‌‍‍‌ ‌‌‍‍‍
Creating New Project
Conditions
Syntax of if-else statements
E1 : if-else statements
Multiple if-else statements
Loops
Syntax of a "for loop"
E2 : for loop
E3 : for loop
Syntax of a "while loop"
E4 : while loop
When to use "for loop" and "while loop"
Syntax of a "do while loop"
E5 : do while loop
"while loop" vs "do while loop"
Solving Questions
Q1 : Largest number
Q2 : Alphabet case check
Q3 : Fibonacci numbers
Q4 : Counting occurrences
Q5 : Reverse
Calculator program
Outro

Taught by

Kunal Kushwaha

Reviews

Start your review of Conditionals and Loops - Calculator Program

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.