Its a Question in the book of
PROGRAMMING IN ANIC C
the question is :-
Given the radius of a circle, write a program to compute and display its area.
Use a symbolic constane to define the ∏(pi) value and assume a suitable value for radius.
my Answer
but i dont get any output and there is no errorCode:/* Name: mkbutan Copyright: Author: Date: 03/08/12 13:50 Description: exec 1.5 pg 21 New */ #include<stdio.h> #include<conio.h> void main() { int r,x; float pi; /*printf("Enter the Radius : \n",r); scanf("%d",r);*/ pi = (22/7); r = 5; x = (pi*r*r); printf("The Area of a Circle is : %d",x); getch(); }
pl help