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

C Program to Find Area and Circumference of a circle.

Details
Written by: sk.shahida
Category: C Programs
  • Basic C Programs-2
#include<stdio.h>
#include<conio.h>
void main()
{
    int r;
    float pi=3.14,area,ci;
    clrscr();
    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);
    getch();
}

 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 Find Sum of All Array Values
  • C Program to Find Sum of N Natural Numbers
  • Decimal to Binary Conversion Using C
  • C Program to Implement Call By Value using Functions
  • Bubble Sort in C
  • FCFS CPU Scheduling Algorithm Simulation Using C
  • C Program to Convert Infix to Postfix Expression using Stack
  • Finding GCD and LCM of Given Numbers using C
  • Swapping of Two Numbers Using Call By Reference in C
  • C Program to Find Second Largest Number in an Array
  • C Program for Sum of Digits of a Number
  • C Program to Implement SJF CPU Scheduling Algorithm
  • C program to find Sum of Digits of a Positive Integer Number
  • C Program to Find Sum of 5 Subjects and Percentage
  • Implementation of Stack Using Array in C
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top