# Blog : Online Interview Questions

##### C program to check leap year This Program accepts year from users and check whether the given year is leap year or not using ladder if else.

##### C program to insert an element in an array This Program insert 50 at 4th index to the given array.

##### C program to print pascal triangle Pascal Triangle is named as the Mathematician Blaise Pascal. This Program shows a Pascal Triangle in front of you as a output.

##### c program to multiply two matrices This Program multiply the elements of the two 3 x 3 matrices.

##### C program for matrix addition This Program shows matrix addition through the addition of corresponding elements of the matrices.

##### C program to find area of circle A circle can be defined as a locus (a set of points in a particular position) of points that maintain equidistant from another point called the center. In this Program first of all User Enter the radius of the circle then it shows the area of the circle according to the given radius by using formula. Area is always squarely proportional to the radius.

##### c program sum of digits Number is an arithmetical value, expressed by a word, symbol, or figure, representing a particular quantity and used in counting and making calculations. In this Program first of all User Enter the an integer number then Program display the sum of digits of inputed number as an output.

##### C program to get square root of a number Number is an arithmetical value, expressed by a word, symbol, or figure, representing a particular quantity and used in counting and making calculations. This program allows the user to enter any number and then finds the square root of that number using math function sqrt () This program uses the math function findSQRT(int number) to find the square root of a number. As we all know √number = number½.

##### C program to check number is palindrome In the successful compilation of the program, a message is displayed on the screen as Please! Enter an integer:This program entered a number by user then store it into a variable after that found its reversed and store it in to another variable if both variables are equal then we can say that inputed number is palindrome otherwise that is not a palindrome.

##### C program string palindrome In the successful compilation of the program, a message is displayed on the screen as Please! Enter a string to check if it's a palindrome:This program entered a string by user then store it into a variable after that found its reversed and store it in to another variable if both variables are same then we can say that inputed string is palindrome otherwise that is not a palindrome.

##### C program to generate random number Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones. Random numbers are important in statistical analysis and probability theory. After the successful compilation of the program, this program displays the following output: Ten random numbers in range [1-100] are as follows: 42, 68, 35, 1, 70, 25, 79, 59, 63, 65

##### C program to check perfect number Perfect number is a positive integer which is equal to the sum of its proper positive divisors. After the successful compilation of the program, this program displays the following output: Enter any number to check perfect number: If user enters 6 then it displays a message like 6 is a perfect number.

###### C Program Examples After the successful compilation of the program, this program displays the following output: Enter values for a, b, c of quadratic equation ax2+bx+c are: If user enters 1, 2, 6 then it displays two distinct complex roots exists: -1.00 + i2.24 and -1.00 - i2.24

##### C program to generate multiplication table After the successful compilation of the program, In this program, we used two variables num, and i. The variable num is used to store the input integer number and the variable ‘i’ is used to iterate the loop. Product of the number is given by num*i;

##### C program to check number is armstrong In this program, the number of digits of an integer is calculated first and stored in n. And, the pow() function is used to compute the power of individual digits in each iteration of the second for loop.