Saturday, 26 September 2015

LIST OF C PROGRAMS

                                LIST  OF   C   PROGRAMS
--------------------------------------------------------------------------------
  
                                            Chapter 1. Simple programs

  • Print Hello World.
  • Find sum, sub, multiplication and products of given two numbers.
  • Find area and circumference of circle
  • Find area of triangle
  • Find area and perimeter of a rectangle
  • Find simple interest
  • Swap(exchange) two values without using third variable
  • Swap(exchange) two values  using third variable

                                             Chapter 2. If else

  • Find the biggest of given two numbers
  • Find the biggest of three numbers
  • Find  that entered year is a leap year or not
  • Program to input no and find out it is even or odd no
  • Program to find that the number is divisible by seven or not
                                           
                                           Chapter 3 selection statements  

  • Program to find out that given character is vowels or consonants
  • Convert temperature on *f to *c.

                                           Chapter 4. Loops 

  • Program to display count 1 to 10
  • Program to find sum of the following series  1+2+3+…………..n
  • 1+3+5+………………+n
  • 1+2/2!+3/3!+………….n/n!
  • 1+x/1! +x*x/2! +x*x*x/3! +…+x*n/n!
  • 1-x/1! +x*x/2!-x*x*x/3! +…+x*n/n!
  • Program to find the factorial of a given number
  • Verify the given integer is an Armstrong number
  • Program to find image(reverse) of a number
  • Program to find whether is multiple of 7 up to 100
  • Program to find  table  of a given number
  • Program to find sum of even number up to given integer
  • Program to display Fibonacci series
  • Program to find the input number is prime or not
  • Program to arrange the input  elements in ascending order
  • Program to convert a binary number into a decimal number
  • Program to convert a decimal number into a binary number
  • Program to print pyramid of star  */**/***/****/*****
  • Program to print pyramid of star   */**/***/****/*****
  • Program to print pyramid of 1 / 1 2 /1 2 3 /1 2 3 4 /1 2 3 4 5
  • Program to print pyramid of 1 /2 2/ 3 3 3 /4 4 4 4/5 5 5 5 5
  • Program to print series of prime number up to 100.


                                         Chapter 5   function

  • Program to print hello world using function
  • Program to calculate the sum using function
  • Program to calculate the square using function
  • Program to swap by function
  • Program to calculate the value of a raised to b.
  • Program to calculate the factorial of a given number
   


                                            Chapter 6 Array

  • Program to find maximum of an array.
  • Program to find minimum number of an array
  • Add two matrices of order MxN
  • Multiply A matrix of order MxN with B matrix of order NxL
  •  Program to display transpose of a matrix

                                            Chapter 7 String
  • Program to find length of a string using strlen() function and also to convert upper case string to lower case and vice-versa
  • Program to concatenate name and name1 using strcat() function
  • Program to copy name1 in name using strcpy() function
  • Program to compare strings name1 and name using strcmp() function

                                         Chapter  8 File Handling

  • Program to Count chars,spaces,tabs and newlines in a file
  • Program to copy a file using  fputs() function
  • Program to copy a file by passing arguments
  • Program to read a data file and display it
  • Program to receives strings from keyword and writes to file




No comments:

Post a Comment