Floyd’s Triangle-It is right angled triangle made by using natural numbers.It starts from 1 and goes on increasing consecutively in sequence. In this C program we have to print Floyd’s triangle by taking length of rows as input from the user. Example- INPUT Input rows-5 OUTPUT 1 2 3 4 5 6 7 8 9 […]
In this C program we have to print sum of first and last digit of the inputted number by the user. Example- INPUT Input number – 1234 OUTPUT Output – 5 Table of contents:- Concept Algorithm Program Output Resource Before writing this C program, lets learn about the concept we are gonna use in our […]
In this C program, we will reverse a five-digit number inputted by the user and check whether the original and reversed numbers are equal or not. We will first take input value by the user and reverse the inputted number. Then we will determine whether the original and reversed number is equal or not. Table […]
In this c program, we will convert temperature input by the user in celsius to Fahrenheit. We will also write the algorithm of the c program to convert temperature from Celsius to Fahrenheit. We will first find out the basic mathematics formulas and solutions to the problem. After finding out the formula and solution to our problem, we will write […]
In this c program, we will convert distance input by the user in meters, feet, inches, and centimeters. We will also write the algorithm of c program to convert distance in meters, feet, inches, and centimeters. We will firstly breakdown the problem and write an algorithm, then after that, we will write the c program […]
In this tutorial, we are writing a c program to take input and add two matrix and display the result as output.
In this tutorial, we are learning about Array in the C Programming Language. Its types and initialization.
For writing this program you need to have knowledge of the following concepts and have a good practice
For writing this program you need to have knowledge in order to write a program that can transpose a given matrix using Array: Double Dimensional Array(2-D Array) Nested Loop Meaning of Transpose : In Matrices, Transpose means to interchange the elements of a matrix. Algorithm : START Read value of the array using Nested loop […]
There are three types of operators in C : Unary Operator Binary Operator Ternary Operator Unary operators consist of either a unary operator pretended to be an operand or the size of a keyword followed by an expression. The expression can be either the name of a variable or a cast expression. A binary expression […]