programming9
  • Flowcharts
  • Programs
      • Back
      • C Programs
      • C++ Programs
      • Java Programs
      • Python Codes
      • HTML Codes
      • Java Script Codes
      • SQL Codes
  • Tutorials
      • Back
      • Java Tutorials
      • Competitive Programming
      • Python Tutorials
      • C Programming
  • Blog
  • Login
    Type 2 or more characters for results.

    C Program to Find Area and Circumference of a circle.

    Written by: sk.shahida
    • Basic C Programs-2
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
        int r;
        float pi=3.14,area,ci;
        printf("Enter the Radius of a Circle:");
        scanf("%d",&r);
        area=pi*r*r;
        printf("Area of a Circle is: %f\n",area);
        ci=2*pi*r;
        printf("Circumference is: %f",ci);  
    }

     OUTPUT:

    Enter the Radius of a Circle:10
    Area of a Circle is: 314.000000
    Circumference is: 62.800003
    
    Previous article: C Program to Convert Temperature from Degree Centigrade to Fahrenheit Prev Next article: C Program to Find Simple Interest Next
    • C Program to Solve Tower of Hanoi Problem Using Recursive and Non-Recursive
    • C program to Print Triangle Pattern
    • Implementation of Stack Using Array in C
    • C Program to Solve Sum of Series 1-x2/2! +x4/4!-x6/6!+x8/8!-x10/10!
    • C Program Example for Call By Reference
    • C Program to Check Given Number is PRIME or Not
    • Compute Factorial of Large Numbers using C
    • C Program to Print Elements of Array Using Pointers
    • C Program Example to Initialize Structure Variable
    • C Program to Print Addresses of Variables
    • C Program for Circumference of a Circle
    • C Program for Sum of Digits of a Number using Recursion
    • C program to Implement BREAK Statement
    • Simulate Bankers Algorithm for Deadlock Avoidance Using C
    • C Program to Find Sum of Even Integers
    • Privacy Policy
    • Cookie Policy
    © programming9.com 2025
    Back to top