Saturday, 1 February 2014

write a program in c++ that calculate leap year

Example 4 if,else statement: logic:          here the main logic is that "the year which will divide by 4 and reminder is zero then the year will be leap otherwise not" so we take the modules of year by and check the year is leap or not. program: #include "stdafx.h" #include "iostream" #include "conio.h" using...


write a program in c++ that take your marks as input and display your grade as output.

Example 3 nested if,else statement: statement: write a program in c++ that take your marks as input and display your grade as output. logic:       we simply use nested if,else statement because we have multiple choices. first of all we have to understand the grading system every institute have own grading system i made this program...