What is Fibonacci Series? In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: or (often, in modern usage): (sequence A000045 in OEIS). By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of […]

## Write a C++ program to Make Calculator

Here is the Simple C++ Program to make Calculator PROGRAM: #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { // enter operand1 op operand2 int nOperand1; int nOperand2; char cOperator; cout << “Enter ‘value1 op value2’n” << “where op is +, -, *, / or %:” << endl; cin […]

## C++ program to convert decimal to binary

Hello all, today we are going to write a C++ program to convert decimal to binary number, let’s first discuss how we can convert a decimal number to binary number and later we will write the program for the same. How Program works? Lets take an example of 11. Now divide it by 2 and […]

## C++ program to find HCF and LCM of two numbers

HCF ( Highest Common Factor): The LCM of 2 numbers is Highest common factor of those numbers. For e.g. we have 20 and 30, so HCF will be 10, as 10 is the highest common factor of 20 as well as 30. You must know how to calculate HCF of numbers. LCM ( Lowest […]

## C++ Program to check Prime number

Today we are going to write a C++ program to check Prime number i.e. if a number enter by user is a prime number or not. We all know what a Prime number is let’s recall quickly: Prime Number: A number which is divisible by 1 and itself is called Prime number i.e. it do […]

## C++ Program to swap two numbers without using temporary variable

Today we are going to write a C++ program to swap two numbers without using any temporary variable, let’s start. There are many ways to swap two numbers without using a Temporary variable. Here I’ve discussed two methods: Using ‘+’ and ‘-‘ operators. Using Bitwise XOR ‘^’. There is another way to swap using call […]

- « Previous Page
- 1
- …
- 41
- 42
- 43