skip to main

skip to sidebar
C Programming
Pages
Home
Programs
Pointer
Projects
Solution
calculate area of a circle in c language  CTechnotips
C program for area of circle
#include
<stdio.h>
#define
PI 3.141
int
main()
{
float
r, a;
printf(
"Radius: "
);
scanf(
"%f"
, &r);
a = PI * r * r;
printf(
"%f\n"
, a);
return
0;
}
Mathematical formula for area of circle:
Here Pie is constant which is equal to
Pie = 22/7 or 3.14159265358979323846264338327950288419716939937510...
Radius is radius of the circle.
0 comments:
Post a Comment
Newer Post
Older Post
Home
Category
Concepts
(16)
Graphics Program
(3)
Hardware interaction through C
(9)
Pointers Tutorial
(29)
Problem
(1)
Program
(196)
Projects
(3)
Puzzles Program
(7)
Question and Answer
(15)
Solution
(4)
System Program
(9)
Virus Program
(2)
Powered by
Blogger
.
Popular Posts
Find G.C.D of two numbers using c language  CTechnotips
Definition of HCF ( Highest common facto r ): HFC is called Greatest Common Divisor (GCD) . HCF of Two Numbers is a Largest Posit...
sorting of array using pointer in c language   CTechnotips
Write a c program for sorting of array using pointer. int main(){ int i,j,temp1,temp2; int arr[8]={5,3,0,2,12,1...
check given number is prime number or not using c program  CTechnotips
Definition of prime number: A natural number greater than one has not any other divisors except 1 and itself. In other word we can say...
check the given number is palindrome number or not using c program  CTechnotips
Definition of Palindrome number or What is palindrome number? A number is called palindrome number if it is remain same when its ...
A Car Racing Game ( Mini Project ) in c language  CTechnotips
/* Language: C\C++ (To convert to C, just change cout to printf and cin to scanf and change the library files) Category: Games\Graphics...
write a c program to find out sum of digit of given number  CTechnotips
Code 1: 1. C program to add digits of a number 2. C program for sum of digits of a number 3. C program to calculate sum of d...
10 Challenging star pattern programs in C
Computer languages are not as easy as human languages, they need you to become a computer yourself, think like a computer and write an al...
Find out the perfect number using c program  CTechnotips
Definition of perfect number or What is perfect number? Perfect number is a positive number which sum of all positive divisors ...
c program for odd or even number  CTechnotips
Algorithm: Number is called even number if it is divisible by two otherwise odd. Example of even numbers: 0,2,4,8,9,10 etc. Exam...
inverse of a matrix in c language  CTechnotips
How to find inverse of a matrix in c C code to find inverse of a matrix Inverse of a 3x3 matrix in c #include <stdio.h> ...
Feedjit Live Blog Stats
0 comments:
Post a Comment