Tag: if/else
Total: 22 Posts
Posts of Tag: if/else
TOP TAGS :
1. ## C++ Program to Check Number is Odd or Even

C++ Program to Check Number is Odd or Even Below I have shared the C++ program to check a number is odd or even. For example if user enters an odd number like 5 then the output will be Odd number and if user en...Learn More
2. ## Batch File Operators, If Else, Goto and For Loop

Batch File Operators, If Else, Goto and For Loop We have learned about variables and how to create the variables in batch files and how to manipulate them to perform different computational tasks. And also we ...Learn More
3. ## C else if Clause

C else if Clause Till now we have learnt about the if statement, if-else statement, if-else nested statements and logical operators. Logical operators are good alternatives of nested if-else statements. But th...Learn More
4. ## C if-else Statement

C if-else Statement Every coin has two faces and this is also true for our problems. Till now we have learnt about if statement in which we can execute a set of statements by giving some condition or expression...Learn More
5. ## Python if, else and elif Statement

Python if, else and elif Statement In this tutorial, we shall focus on Python if, else and elif statement. Decisions are one of the most important feature of any computer program. It basically helps to systemat...Learn More
6. ## C++ Program to Find LCM and HCF of two numbers

C++ Program to Find LCM and HCF of two numbers #include <iostream.h> #include <conio.h> void main() { clrscr(); int a, b, hcf, lcm, max, min, r; cout << "Enter two numbers:"; ...Learn More
7. ## C++ Program to find quotient and remainder of two numbers

C++ Program to find quotient and remainder of two numbers #include<iostream.h> #include<conio.h> void main() { clrscr(); int a, b, q, r; cout << "Enter two numbers:"; cin >> a ...Learn More
8. ## C++ Program to Check whether a year is Leap year or not

**C++ Program to Check whether a year is Leap year or not** #include#include void main(){ clrscr(); int year; cout cin>>year; if(year%100==0) { if(year%400==0) cout } else if(year%4==0) cout else ...Learn More
9. ## C++ Program to Find Roots of Quadratic Equation

C++ Program to Find Roots of Quadratic Equation Here you will get simple C++ program to find roots of quadratic equation ax2+bx+c=0. #include<iostream> #include<math.h> //to calculate square root u...Learn More
10. ## C++ Program to print three numbers in descending order

C++ Program to print three numbers in descending order #include <iostream.h> #include <conio.h> void main() { clrscr(); int a, b, c, big1, big2, big3; cout << "Enter three numbers:...Learn More
11. ## C Program to Find Roots of Quadratic Equation

C Program to Find Roots of Quadratic Equation Here you will get C program to find roots of quadratic equation ax2+bx+c=0 #include<stdio.h> #include<math.h> int main() { float root1,root2,a...Learn More
12. ## C++ Program to Check Given Character is Uppercase, Lowercase, Digit or Special Character

C++ Program to Check Given Character is Uppercase, Lowercase, Digit or Special Character Below I have shared C++ program to check whether a given character is an uppercase or lowercase alphabet, a digit or a sp...Learn More