Posts

Showing posts from April, 2020

C++ (Chapter 2.2) : Nested IF

For any type of consultation, query or doubt. You may contact to the following: (+91) 9804 436 193 debabrataguha20@gmail.com  and join the group  https://www.facebook.com/groups/331231161093613/   Hope the basic understanding of conditional statement is clear now. But if you are starting your C++ learning from this chapter only, I will request you to go through 1 st 2 chapters and solve the exercises. Then only come to this chapter. So let’s go to a program which we discussed earlier in the previous chapter ( Starting IF ). It will be like, user will give the month-number as input and program will return the number of days as an output. Input                     output                  why? 1                             31                           1 means January & there are 31 days in that month  2                             28/29                     2 means February and we can have 28/29 days in Feb 3                             31                           3