Monday, December 29, 2008

C programs

1 Print the ascii chart

2 Program to Print the status of a character.

3 Reverse String program using inbuilt functions

4 C program to sort strings in descending order.

5 C Program to find the length of a given string without using in-built function. Also check for palindrome.

6 C program to swap 2 strings

7 C Program to read a set of lines from stdin and print the longest line.

8 C Program to concatenate two strings without using inbuilt function strcat()

9 C program to read a string and copy the alphabets into another string.

10 C program to read an array of names and sort them in alphabetical order.

11 C program to read n integers from the keyboard and store them in the array

12 C program to find the maximum and minimum in an array of 100 integers and their locations

13 C program to search an element in an array of n elements.

14 C program to sort the elements of an array in descending order.

15 Given two linear arrays of integers write a program print the values of only those integers that appear in both the arrays

16 Write a program to merge 2 arrays into a single sorted array

17 C program to shift an element by one location to the left in an array of n elements

18 C Program to Print Fibonacci series using arrays

19 c program to add two m x n matrices and store the results in a third matrix

20 C program to find the product of 2 matrices

21 C program to print the sum of diagonal elements in a matrix

22 C Program for Calculating grades of “N” students from 3 tests

23 C program to read a matrix (m x n) column-wise, then transpose the matrix

24 C program to find if a given number is a strong number

25 C program using function to find the arithmetic mean of n numbers

26 C Program to obtain the trace of a given square matrix of order m x m

27 C program which inputs n and r and computes nCr ie nCr = n! / r! (n-r)!

28 C Program using function to find the GCD of 2 nos recursively

29 C Program using function to compute the Fibonacci series recursively

30 C Program to check whether the number is Armstrong no or not

31 C Program to enter list of number and print the number of asterisks until number entered is 0

32 C Program to print the asterisk graph

33 C Program to convert binary number into decimal number

34 C Program to print average of even numbers below a range

35 C Program to print fibonicci series

36 C Program to enter a list of numbers, print the number until number is greater than 15

37 C Program to enter a number n and print its multiplication table

38 C Program to print odd numbers upto 50

39 C Program to display following pattern of *

40 C Program to find Square root of a number

41 C Program to find the sum of digits of a number

42 C Program to swap value of 2 integers using a temperory variable

43 C Program to swap value of 2 integers without using a temperory variable

44 C Program to print a triangle

45 C Program to print Floyd’s triangle

46 C Program to function for a calculator

47 C Program to print factorial of numbers from 1 to 15

48 C Program to print prime numbers between n1 and n2 where n1 and n2 are user inputs

49 C Program to find largest and smallest value from three numbers

50 C Program that intializes the loop to produce a table of value (N 10*N 100*N 1000*N)

51 C Program to enter meter reading,calculate the cost and print it out

52 C Program to enter the sale value and printout the commission value

53 C Program to calculate the average of 3 numbers

54 C Program to enter temp in centigrade n convert it to fahrenheit

55 C Program to find the exponential value

56 C Program to compute the series

57 C Program to convert decimal number to binary number

58 C Program to Condense a number

59 C Program to find gcd of two numbers

60 C Program to compute the sin series

61 C Program for Bubble or Exchange sort

62 C Program for Bubble or Exchange sort for strings

63 C program of Stack Operations using arrays

C programsSocialTwist Tell-a-Friend

0 comments: