Nishu Kumari has Published 83 Articles

C++ Program to Check Leap Year

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:07:56

13K+ Views

A leap year contains one additional day, i.e february 29, to keep the calendar year synchronized with the earth's orbit around the sun. We will write a C++ program that checks whether a given year is a leap year or not. A year that is divisible by 4 ... Read More

C++ Program to Generate Multiplication Table

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:06:55

5K+ Views

In this article, we will show you how to write a C++ program to generate the multiplication table of a number. A multiplication table shows how a number is multiplied by 1 to 10 and helps define the multiplication operation for that number. Each row displays the result of ... Read More

C++ Program to Display Factors of a Number

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 17:04:52

12K+ Views

A factor is a number that divides a given number completely without leaving a remainder. In this article, we'll show you how to display all the factors of a number using different methods in C++. For example, the factors of 12 are 1, 2, 3, 4, 6, and 12. In ... Read More

C++ Program to Check Whether a Number is Prime or Not

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 16:59:42

3K+ Views

A prime number is a whole number greater than one and the only factors of a prime number should be one and itself. For example, 2, 3, 5, 7, and 11 are prime numbers. Our task is to write a C++ program that checks if a given number is ... Read More

C++ Program To Convert Decimal Number to Binary

Nishu Kumari

Nishu Kumari

Updated on 13-May-2025 16:58:31

5K+ Views

In a computer system, the binary number is expressed in the binary numeral system while the decimal number is in the decimal numeral system. The binary number is in base 2 while the decimal number is in base 10. Examples of decimal numbers and their corresponding binary numbers are ... Read More

C++ Program to Check Prime Number By Creating a Function

Nishu Kumari

Nishu Kumari

Updated on 09-May-2025 16:05:32

6K+ Views

In this article, we will show you how to check whether a number is prime by creating a function in C++. A prime number is a number greater than 1 that has no divisors other than 1 and itself. For example, 2, 3, 5, 7, and 11 ... Read More

C++ Program to Make a Simple Calculator to Add, Subtract, Multiply or Divide Using switch...case

Nishu Kumari

Nishu Kumari

Updated on 09-May-2025 15:50:08

2K+ Views

In this article, we'll show you how to write a C++ program to create a simple calculator that can add, subtract, multiply, or divide using a switch statement. The calculator works by taking two numbers(operands) and an operator (+, -, *, /) from the user, and then it performs ... Read More

C++ program to Calculate Factorial of a Number Using Recursion

Nishu Kumari

Nishu Kumari

Updated on 09-May-2025 15:49:09

1K+ Views

In this article, we'll show you how to write a C++ program to calculate the factorial of a number using recursion . The factorial of a number is the result of multiplying all the positive numbers from 1 to that number. It is written as n! and is commonly ... Read More

C++ Program to Find G.C.D Using Recursion

Nishu Kumari

Nishu Kumari

Updated on 09-May-2025 15:32:38

10K+ Views

In this article, we'll show you how to write a C++ program to find the Greatest Common Divisor(GCD) of two numbers using Recursion. The GCD of two numbers is the largest number that divides both of them without leaving a remainder. It is also known as the Greatest Common ... Read More

C++ Program to Convert Binary Number to Decimal and vice-versa

Nishu Kumari

Nishu Kumari

Updated on 09-May-2025 15:31:37

2K+ Views

In this article, we will learn how to convert a binary number to a decimal number and a decimal number to a binary number using C++. This means converting numbers like 5 or 10 into a format that uses only 0s and 1s, and also converting binary numbers back ... Read More

Advertisements