AREA_CIR - c=circum(r); printf("area = %f...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//area and circumference// / #define PI 3.142857 #include<stdio.h> #include<conio.h> # float sum (float); float circum(float); f void main (void) { float a,r,c; clrscr(); printf("enter the radius: "); scanf("%f",&r); a=sum(r);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c=circum(r); printf("area = %f circumference = %f",a,c) ; getch(); } float sum(float r) { float a; a=PI*r*r; return (a); } float circum(float r) { float c; c=2*PI*r; return (c); }...
View Full Document

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Ask a homework question - tutors are online