## c program to find simple interest

How to calculate simple interest? Simple interest can be calculated using the formula: Simple Interest SI=(p*t*r)/100. Here p is the principal amount. For this amount we are calculating the interest. t is the timeperiod and r is the interest rate. Take input of p,t and r then multiply them and after that divide them by … Read more

## Transpose of a matrix in c

Transpose of a matrix in c programming is the way to obtain a new matrix by transposing it with the help of c programming language. What is transpose of a matrix? Transpose of a matrix can be done by creating a new matrix by exchanging the rows and columns. If we want to obtain transpose … Read more

What is Matrix addition in c? Matrix addition in c can be done using two nested for-loops iterating through each elements in both matrix. See below program and explanation. Program for addition of matrix in c Explanation First we take both matrices as two-dimensional array. Then we use nested for loop to iterate through each … Read more

## Printf in c

What is printf in c programming? Printf is a function to print formatted or unformatted data to stdout. Printf is found in stdio header file. It returns number of character written on to console. You can simply put printf in if statements. Prototype Parameters Look at the function parameters the formatted_string is to specify the … Read more

## Scanf in c

What is scanf in c programming? Scanf is a function to read formatted data from stdin. That is the data is read from the keyboard. The scanf function is used to enter data in C language True/False? Answer for this question is true. scanf is found in stdio header file. Look at the prototype below: … Read more

## Pointers in C

Introduction to pointer in c A pointers in c is a variable which holds the address of another variable. The variable can be of any data type. The pointer in 64 bit architecture will have 8 bytes of memory and in 32 bit architecture it is 4 bytes. Simple pointer variable can be created by … Read more

## c structures

What is structure in c programming? C structures are a derived data type. structure in C allows to pack up more than one type of data in a single variable. structure can be defined keyword struct. dot (.) operator is used to access the structure member and arrow (->)operator is used to access the structure … Read more

## c program structure | 5 basic components of a c program

If you want to know the c program structure then read the complete article. Components of c program structure C progam contains 5 main components are listed below. Pre-processor. variables. Functions. C program statements and expressions. Comment lines. Pre-processor in c program structure The preprocessor is a simple instruction to compiler. It instructs that pre-processors … Read more

## C Program to swap two numbers | 4 methods

Programming pre-requisites to swap two numbers in c Unary addition and subtraction operator in c. Unary multiplication and division operator in c. Bitwise xor operator in c. Assignment operator. Input output operations in c. Data-type in c. c program to swap two numbers using temporary variable C Program to swap two numbers without third variable by Addition and subtraction … Read more

## Fibonacci series in c | c++ and java

If you are searching for Fibonacci series in c | c++ and java then you are at the right article. Note in this article simple iterative approach is used. Table of contents Topics Definition of fibonacci series. Example fibonacci sequence. Prerequisite programming requirements for Fibonacci series in c | c++ and java. Fibonacci series in … Read more