Search
 
SCRIPT & CODE EXAMPLE
 

C

c program to find area of circle

#include <stdio.h>
#define PI 3.142
int main(){
    float R, A;
    printf("Enter the radius: 
");
    scanf("%f", &R);
    A = PI * R * R;
    printf("Area is: %f
", A);
    
}
Comment

Area of a Circle in C Programming

#include<stdio.h>
int main()
{
    double R, A;
    scanf("%lf", &R);
    A = 3.14159 * R * R;
    printf("A=%.4lf
", A);
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: c string 
C :: c modify char array 
C :: odd even in c with ternary operator 
C :: comment c 
C :: convert int to string c 
C :: text berjalan html 
C :: c to llvm 
C :: c style string 
C :: casting an int to a char in c 
C :: putchar in c 
C :: print a part of string c 
C :: C first digit of integer 
C :: houdini vex loop over points 
C :: simple bootstrap form example 
C :: passing two dimensional array to function in c 
C :: c convert string to size_t 
C :: delay in c programming for windows 
C :: how to take comma separated integer input in c 
C :: macos prevent disk mounting 
C :: unpack and repack deb package 
C :: c str add int 
C :: how to join an array of strings c 
C :: how to open form in vb.net 
C :: string in c 
C :: iterating through a linked list 
C :: pipe system call 
C :: Here is a program in C that illustrates the use of fprintf() to write a text file: 
C :: c program for fibonacci series 
C :: c program to pass a single element in an funtional array 
C :: pointeur de pointeur en language c 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =