answersLogoWhite

0


Best Answer

#include

using std::cin;
using std::cout;
using std::endl;

int main()
{
double radius = 0;
cout << endl << "Enter radius: ";
cin >> radius;

cout << endl << "Diameter is: " << (2*radius) << endl;

system("PAUSE");
return 0;

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a Program that reads radius of circle and prints the circle's diameter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How did menu's develop?

A restaurant prints it out using a special program


Create a program which accepts a number not less than 10The program prints the reverse of the number?

ten


How do you write a c program that prints a box an oval an arrow and a diamond?

You first learn how to program in C.


Dry run table in flow-chart?

/* my second program in C++ with more comments */ #include &lt;iostream&gt; using namespace std; int main () { cout &lt;&lt; "Hello World! "; // prints Hello World! cout &lt;&lt; "I'm a C++ program"; // prints I'm a C++ program return 0; }


Who painted horses?

The Indians would paint horses according to their tribe. They would put hand prints, circles around a horse's eye, etc.


Program in c to develop an algorithm that prints the n value of algorithm?

reymond rillera reymond rillera


Why MsgBox with string 000 prints e but 00 or 0000 are printed correctly Thank you ozcansyahoocom?

Your program is wrong.


Do a program with turbo pascal to print the alphabet backward?

Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.


Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.


What prints are available for plus sized scrubs from Uniform Advantage?

Uniform Advantage has many print options for plus sized scrubs that are available for purchase. Such prints include Havana Dream White, Circle Games Spearmint Splash, and Woof in the Clouds Navy.