"Understand the flow of the program and try practicing it on your own and let me know in the comments section were you able to do it in the very first place on the basis of your understanding or how do you find these questions, Goodluck :) "
Question 1: Even or Odd If else
Question 2:Calculator Switch case
Question 3: Prime Number in a range If else (flag and break concept)
Code:
Output:
Question 4: Day in a Week by number Switch case
Question 5: Palindrome if else and while loop
(though we will discuss this in later section but you can see here how it works)
Question 6: Program to find the maximum number of placements in a Branch using if else
Output:
Question 7: Season using if Else and or operator
Question 8: Fuel Consumption Calculator using If else
Output:
Question 9: Leap Year using if else
Question 10: Greater among Three numbers using if else
These 10 questions are a mix of different difficulty level hope this will help you in brushing up this section upto a desired level required for completing the fundamentals of if else and switch case constructs. Now, see you in the next section.
Comments
Post a Comment
if you have any doubts, pls let me know