0% found this document useful (0 votes)
3 views14 pages

C Programs for Common Algorithms

Uploaded by

menhamanafk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views14 pages

C Programs for Common Algorithms

Uploaded by

menhamanafk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PROGRAM NO : 1

SUM & REVERSE OF A NUMBER


AIM
C program to find Sum of the digits and reverse of a number

PROGRAM

OUTPUT
PROGRAM NO : 2

PYRAMID USING *
AIM
C program to display pyramid using *

PROGRAM
OUTPUT

PROGRAM NO : 3

SHORT FORM OF A STRING


AIM
C program to print short form of a string eg:- Computer Science : CS

PROGRAM
OUTPUT
OUTPUT

PROGRAM NO : 5

FACTORIAL OF A NUMBER
AIM
C program to find Factorial of a number using recursion.

PROGRAM
OUTPUT

PROGRAM NO : 6

STANDARD DEVIATION
AIM
C program to find Standard deviation of n numbers
OUTPUT

PROGRAM NO : 10
CURRENCY DENOMINATION
AIM
C program to find the currency denomination of a given amount.
PROGRAM
OUTPUT
Check whether leap year or not

OUTPUT
Find the first n Fibonacci numbers.

Output
OUTPUT

PROGRAM NO: 12

BASE CONVERTION
AIM
C program to convert a decimal to new base

PROGRAM
PROGRAM NO: 14

MATRIX TRANSPOSE
AIM
C program to print transpose of a matrix.

PROGRAM
OUTPUT

PROGRAM NO : 17

ARMSTRONG NUMBER
AIM
C program to print Armstrong numbers in a range

PROGRAM
OUTPUT

You might also like