Easy C++ Program How To Join Two or More Strings using Concat Method

C++ Program How To Join Two or More Strings using Concat Method In this program, you will Learn How To Join Two or more Strings. Concat Strings: –   Concat means Concatenation of two or more strings together. So, if we want to join or combine two or more strings together in C++ we used the Concat() Method. Code: – #include <iostream> #include <string> using … Continue reading Easy C++ Program How To Join Two or More Strings using Concat Method

Easy C++ Program To Check whether two numbers are Amicable Numbers

C++ Program To Check whether two numbers are Amicable Numbers In this situation, you’ll discover ways to find out whether two numbers are Amicable Numbers or not Entered by a specific person. Amicable Number: – If each number is equal to the next number of the sum of proper divisor than this number is known as an Amicable number. Proper divisor: – Proper divisor depicts … Continue reading Easy C++ Program To Check whether two numbers are Amicable Numbers

Easy C++ Program How To Convert Binary to Decimal Number System

C++ Program How To Convert Binary to Decimal Number System In this case, you may learn how to discover the Decimal number of a Binary Number Entered by user Or, the way to Convert a Binary number into Decimal range.   What is Binary Number System: – The base of the Binary number system is 2 because it only contains 2 numbers (1s and 0s). 1 is considered as true and 0 is considered as false. Or 1 is the term … Continue reading Easy C++ Program How To Convert Binary to Decimal Number System

Easy C++ Program Average of Positive Numbers using Recursion

C++ Program Average of Positive Numbers using Recursion Programmio brings another program for you here you will discover how to use Recursion to find an average of positive n numbers. Average: – An average is the imperative point of all the numbers which is likewise known as Median, it’s far Calculated by using adding all number and dividing them into their variety of digits.  Recursion: – Recursion is a type of function which repeats itself many times for a valid condition. Recursion is also … Continue reading Easy C++ Program Average of Positive Numbers using Recursion

Easy C++ Program Average of Numbers

C++ Program Average of Numbers In this example, you may discover ways to calculate the average of n(Random) Numbers Entered by a person. Average: – An average is the imperative point of all the numbers which is likewise known as Median, it’s far Calculated by using adding all number and dividing them into their variety of digits. Code: – #include<iostream> using namespace std; int main() {     int n;     double average(0);     cout<<“Enter the number of values : “;     cin >> n;     for(int i = 0; i < n; … Continue reading Easy C++ Program Average of Numbers

Easy C++ Program Arithmetic Operations of a Complex Number Using Structure

C++ Program Arithmetic Operations of a Complex Number Using Structure In this situation, you’ll discover ways to find arithmetic Operations of a complex Numbers Entered by the user. Complex Number: – Real and imaginary are the two parts of the complex number. Code: – #include<iostream> #include<conio.h> #include<math.h> using namespace std; struct complex {  float rel;  float img; }s1,s2; int main() {  float a,b;  cout<<“Enter real and imaginary part of 1st complex number:”;  cin>>s1.rel>>s1.img;  cout<<“Enter … Continue reading Easy C++ Program Arithmetic Operations of a Complex Number Using Structure

Easy C++ Program Absolute value of a number

C++ Program Absolute value of a number In this Example, you will learn, how to find the Absolute value of a number. Absolute value: – Distance is continually measured in positive values because the preliminary position of an object is 0 so, the value can be greater than 0. An absolute value is also usually positive. So, an absolute value of any object or range can be referred as the positive distance of any item. Code: – #include<iostream> using namespace std; int main() { float num; cout<<“Enter any number:”; cin>>num; if(num>0) { cout<<“The absolute … Continue reading Easy C++ Program Absolute value of a number

Easy C++ Program To Print Star Half Pyramid

C++ Program To Print Star Half Pyramid In this Example, you will Learn how to Print the Half of a Pyramid or a Triangle Using Symbol *. Code: – #include <iostream> using namespace std; int main() {     int i, j, rows;     cout << “Enter the number of rows: “;     cin >> rows;     for (i = 1; i <= rows; ++i)     … Continue reading Easy C++ Program To Print Star Half Pyramid

Easy C++ Program To Print Half Pyramid with Numbers

C++ Program To Print Half Pyramid with Numbers In this Example, you will Learn how to Print the Half of a Pyramid or a Triangle Using Symbol Numbers. Code: – #include <iostream> using namespace std; int main() {     int i, j, rows;     cout << “Enter the number of rows: “;     cin >> rows;     for (i = 1; i <= rows; ++i) … Continue reading Easy C++ Program To Print Half Pyramid with Numbers