top of page

A C+ program that will find the Area and Circumference of a circle

  • Writer: Nelson John
    Nelson John
  • Nov 22, 2017
  • 1 min read

#include<stdio.h>

int main() {

int rad;

float PI = 3.14, area, ci;

printf("\nEnter radius of circle:");

scanf("%d", &rad);

area = PI * rad * rad;

printf("\nArea of circle : %f ", area);

ci = 2 * PI * rad;

printf("\nCircumference : %f ", ci);

return (0);

}

HOPE IT HELPS

Facebook: ayamnelrodinho1@gmail.com

Yahoo: talk2nelsonjohn2dat@yahoo.com

Whatsapp: +2349034595610

PLEASE KINDLY SHARE WITH FELLOW PROGRAMMERS AND ALSO SUBSCRIBE TO MY BLOG FROM THE HOME PAGE FOR MORE FEEDS.


 
 
 

Comentários


bottom of page