What is a Program? - Here’s Everything You Need to Know

What is a Program? - Here’s Everything You Need to Know

A computer program, or simply a program, is a sequence of instructions that instructs the system to…

Missing Numbers

Missing Numbers

Problem Given an integer array in which all numbers occur twice except 2. Find those two numbers…

Add elements of two arrays into a new array

Problem Given two arrays of positive integers, add their elements into a new array. You should a…

Check if an array is formed by consecutive integers

Problem Given an unsorted array of numbers, check if the array consists of consecutive numbers o…

Write a Program to create a loading bar

Problem Statement We need to write a program in C, C++, and Python, that creates a loading bar o…

Write a Program to print the truth table for XY+Z

Problem Statement We need to write a program that can print a truth table for the logic XY+Z. Th…

Write a Program to calculate area of a circle, a rectangle or a triangle depending upon user's choice

Problem Statement  We need to write a program in C, C++, and Python, that is capable of ret…

Write a Program to Print the Following Triangle

Problem Statement 1 We need to write a program in C, C++, and Python that can print the followin…

Write a Program to Print the Following Pattern

Problem Statement We need to write a script in C, C++, and Python that can print the following p…

Write a Program to convert a lowercase alphabet to uppercase or vice-versa using ASCII code

ASCII stands for American Standard Code, and it represents a unique numeric value for every charact…

Write a Program to Print Three Numbers in Descending Order

Write a Program to Print Three Numbers in Descending Order

Let's say that we have three numbers and we need to sort them in descending order. How would we…

Write a Program to calculate sum and average of three numbers

Write a Program to calculate sum and average of three numbers

In this tutorial, we will learn how to write a script in C, C++, and Python to calculate the sum an…