C Practice Programs

So guys, here are some basic C programs that you must know!!

  1. Area of circle using pointer.
    input: 3.5
    output: 38.465


  2. C program to Accessing Value from Address using Pointer
    input: 5
    output: 5


  3. Number Pyramid Pattern in C Programming
    input: 5
    output:
    1
    1 1
    1 2 1
    1 3 3 1
    1 4 6 4 1


  4. Generate the Fibonacci Series starting from any two numbers?
    input:  10 20 200        //here 200 is the limit
    output:  10 20 30 50 80 130


  5. Reverse a given number !
    input: 123
    output: 321


  6. Check Whether Number is Perfect Or Not
    input: 6
    output: perfect number

 

Do try them, and yes, you can always find the solution here

Design a site like this with WordPress.com
Get started