Wiki User
∙ 12y ago#include
#include
#include
using std::cout;
using std::cin;
using std::endl;
using std::setw();
int main()
{
const double PI = 3.14153;
double radius = 0.0;
cout << "Enter radius of circle: ";
cin >> radius;
unsigned short precision = 5;
cout << endl <<"Enter precision you want have (not more than 6 digits): ";;
cin >> precision;
cout << setw(precision) < system("PAUSE"); return 0; }
Wiki User
∙ 14y agoWiki User
∙ 12y ago#include<stdio.h>
main()
{
float r,area;
printf("Enter radius\n");
scanf("%f",&r);
area=3.14*r*r;
printf("area=%f",area);
}
Wiki User
∙ 10y agoDude, we're not going to do your programming homework. If you really just want to know, I'm sure there are any number of sample programs on the internet.
write a note on event driven programming
write a program draw circle and ellipse by using oval methods in java
To use an analogy, a programming language is similar to any natural language such as English. We use the language to construct expressions which can be combined to form statements, just as we use English to construct expressions which can be combined to form sentences. Programming tools are simply tools that help us to write code, in much the same way that word processors help us to write letters. In programming, the main tools we use are code editors, compilers and debuggers. But just as a spell-checker won't help us write better poetry, programming tools won't help us write better programs. For that we must understand the language itself.
Most modern programming languages have some support for object-oriented programming. In some (such as Java), it is obligatory - you have to write your code in classes. In others - such as JavaScript or PHP - it is optional, meaning that you can write programs the old-fashioned way (procedural programming).
Statements.
write a c++ programe to print a triangle without (for)
Learn c programming and geometry. It will be easy when you know both.
write a note on event driven programming
Without programming languages you couldn't write (system) programs.
Do the global elite have a covert depopulation programe ? as they are obsessed as you can see in the media, dont write you personal opinion on how you wouldnt do this just facts and dates.
by using this we can write a coding for operating systems
circle
Assuming Absolute Value.abs(num)
Write computer-programs, I suppose.
"a compass "But how do I write this mathematicaly?e.g.a parabula is f(x)=x2what is the way to write a circle function??
write a program draw circle and ellipse by using oval methods in java
This is not a "Dude 1 did it or Dude 2 did it"-Question. One of the first things related to programming was the guideline to calculating the bernoulli numbers by Ada Lovelace in 1842/43. The first real universal programming language would be the Lambda Calculus by Alonzo Church and Stephen Cole Kleene in the 1930s. Theoretically it can be used to write programs as complex and powerful as with a modern language.