Skip to content

Category Archives: C++ Programs

Given a number ‘n’, the task is to print the Fibonacci series using Command Line Arguments. The Fibonacci numbers are the numbers in the following… Read More
Given a number, the task is to find the Factorial of this number using Command Line Arguments. Factorial of a non-negative integer is the multiplication… Read More
Given two numbers, the task is to find the average of two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20… Read More
Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common… Read More
Given two numbers, the task is to find the LCM of two numbers using Command Line Arguments. LCM (Least Common Multiple) of two numbers is… Read More
Given two numbers, the task is to swap the two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20 Output: 20… Read More
Given two Strings, the task is to concatenate the two Strings using Command Line Arguments. Examples: Input: str1 = "hello", str2 = "world" Output: helloworld… Read More
Given three numbers, the task is to find the greatest of three numbers using Command Line Arguments. Examples: Input: A = 2, B = 8,… Read More
Given an undirected graph g, the task is to print the number of connected components in the graph. Examples:   Input:   Output: 3 There are three connected… Read More
Given a number N, the task is to check if N is a Leap Year or not, using Command Line Arguments. Examples: Input: N =… Read More
Given a number N, the task is to check if N is a Prime Number or not using Command Line Arguments.Examples:   Input: N = 7… Read More
Given a number N, the task is to find the Prime Numbers from 1 to N using Command Line Arguments. Examples:  Input: N = 7Output:… Read More
Given a number, the task is to find the Sum of Digits of this number using Command Line Arguments. Examples: Input: num = 687 Output:… Read More
Given that a certain amount of money becomes T1 times itself in N1 years. The task is to find the number of years i.e. N2… Read More
Given a binary array, the task is to count the number of 1’s and 0’s in this array using STL in C++. Examples: Input: arr[]… Read More

Start Your Coding Journey Now!