C++ Basic Example for student and Programmer

Posted on

 

C++ Applications

1. Test No. is Prime or Not Prime.


2. Print subsequent Prime quantity.

Once we enter any quantity this code will print subsequent Prime quantity.
Instance: Suppose we enter 5 then subsequent prime quantity is 7.

Instance

Output


3. Fibonaccci Collection in C++ with out Recursion.

Instance

Output


4. Fibonnaci sequence utilizing recursion in C++.

Instance

Output


4. Reverse a String in C++.

Instance

Output


5. Matrix Program in C++.

Addition of two matrix in c++

Output


6. Swap two numbers utilizing third variables.

Instance

Output


7. Swap two numbers with out utilizing third variable.

Instance

Output


8. Examine two strings in C++.

Instance