5 Nov 2009

LARGE OVAL

Today, I want you to make a program computer for "compute" large of oval. Save it with Task1.cpp


/* Task 1 */

#include <iostream.h>

#include <conio.h>

void main()

{

cout<<"OVAL LARGE"<<endl;

float r, large;

const float phi=3.14;

cout<<"Input r = ";

cin>>r;

large=phi*r*r;

cout<<"Large is "<<large;

getch();

}

0 comments:

Post a Comment

 

C++ Language Learning Design by Insight © 2009