Posts

Showing posts from April 17, 2013

Matrix in C

Write a program for the addition of a 2*2 matrix.   Source Code:

Function in C

Write a program to show the advantage of using function in a program Source Code:

Break and Continue in C

Differentiate between break and continue using C source code Source code:

Sum the selected digits

If a four digit integer number is input through the keyboard then write a c program to find the sum of first and last digit. Sample Input: 3254 Output: 7 Hints: 3(1st digit)+4(last digit)=7  Source Code: 

Write a Program to count the currency notes.

A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input through the keyboard, find the total number of currency notes of each denomination the cashier will have to give the withdrawer. Source Code: 

Sum the digits

If a 5 digit integer number is input through the keyboard, Write a program to print the sum of all the digits from taken input.  Sample input: 54321 output: 15 Explanation: 5+4+3+2+1=15 Source Code: