
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mandalika has Published 470 Articles

Mandalika
14K+ Views
Constant is a value that cannot be changed during program execution; it is fixed.In C language, a number or character or string of characters is called a constant. And it can be any data type. Constants are also called as literals.There are two types of constants −Primary constants − Integer, ... Read More

Mandalika
7K+ Views
ProblemGenerate the greatest common divisor for any two numbers using C programming language.SolutionLet the user enter any two numbers from the console. For those two numbers, let’s find the greatest common divisor.The GCD of two numbers is the largest number that exactly divides both of them without a remainder.The logic ... Read More

Mandalika
6K+ Views
ProblemIs it possible to convert the given one or two-digit numbers into English words by using the C Programming language?SolutionWe can easily convert the given two-digit number into English word format with the help of a switch case. Not only two digits, but any number can also convert into English ... Read More

Mandalika
18K+ Views
ProblemLet the user enter four series of integers in the console, find out a number which is smallest and largest in a seriesSolutionTo calculate the small and large number, we use if conditions. The logic we use to find the largest and smallest number is −if(minno>q) //checking 1st and 2nd ... Read More

Mandalika
1K+ Views
ProblemHow to convert the time from 24 hr format to 12 hr format using C Programming language?SolutionRead the time value from the user (at run time). It has to be converted into 12 hr format from 24 hr.AlgorithmStart: Step 1: Enter time in 24 hr format Step 2: check the ... Read More

Mandalika
424 Views
ProblemHow to add two complex numbers which are entered at run time by the user using C program −SolutionA complex number is a number that can be a combination of real and imaginary parts.It is represented in the form of a+ib.ProgramFor example, let’s take the two complex numbers as (4+2i) ... Read More

Mandalika
344 Views
Pascal's triangle is the representation of integers in the form of a triangle. One of the famous representations of it is with binomial equations. We can use combinations and factorials to achieve this.Constructing a Pascal triangleAll values outside the triangle are considered zero (0). The first row is 0 1 ... Read More

Mandalika
228 Views
Floyd's triangle is a right-angle triangle of consecutive numbers, starting with a 1 in the top left corner −For example,1 2 3 4 5 6 7 8 9 10Example 1 Live Demo#include int main(){ int rows, i,j, start = 1; printf("Enter no of rows of Floyd's triangle :"); scanf("%d", &rows); for (i = 1; i

Mandalika
10K+ Views
ProblemHow to check whether the given number is an Armstrong number or not using C Programming language?SolutionArmstrong number is the number that is equal to the sum of cubes of its digits.Syntaxpqrs………=pow(p, n)+pow(q, n)+pow(r, n)+……….For example, 153, 371, 1634, etc., are Armstrong numbers.153=1*1*1 + 5*5*5 + 3*3*3 =1+125+27 ... Read More