answersLogoWhite

0


Best Answer

Use: cout << pow(x,2) << endl;

you need to include iostream and cmath. #include #include

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display x to the power of 2 on output screen using C Plus Plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why output devices are required?

A display device such as a screen or monitor is an output device. Right from here we can already say that a display device is required to be able to visibly know what we are doing on a computer. (Even if you have a remote connection to that device you will be using a display device to view the contents of the remote device using another computers monitor.)Printers and speakers are examples of output devices. Printers are required to receive hard copies of information and Speakers are audio devices that are required to hear audible files.In short, without output devices will would not be able to view, hear, or hold data from a device.


How do you write a program using the gotoxy statement and print function to display letters of the alphabet on the computer screen?

There is no gotoxy statement in C.


Write a program using recursion which should take two values and display 1st value raised to the power of second value?

Write a program using recursion which should take two values and display 1st value raised to the power of second value.


How do you you Create 2 text-field and 1 button in java using applet and then get the input as integers in 2 text-field and to display the output in label already created when you click the button?

How to you Create 2 text-field and 1 button in java using applet and then get the input as integers in 2 text-field and to display the output in label already created when you click the button? please send immediately,needed urgently


Is there anyway it increase the power out put of a motor?

The power output of a motor can be changed by the use of gears. Gears can be used to increase torque by reducing the speed of the output shaft by placing a large gear on the output shaft, coupled to a smaller gear. Conversely, by using a small gear on the output shaft, coupled to a larger gear, the speed can be increased with a reduction in torque.

Related questions

How do you display an exponential power symbol on the output screen using Borland C Plus?

Use the ^ (Shift 6) character usually called the Carrat Symbol.


How do you display del symbol on output screen using C Plus Plus?

The del character, #255, has no symbol. It is a non-printing character, so you cannot display it on the screen.


What monitor element has both input and output devices?

A (n) touch screen is a monitor element that has both an input and an output device. Touch screen : A display screen with a transparent touch-sensitive covering that allows a user to select input by touching the screen rather than using a keyboard or a mouse. a touch screen does triple-duty as an output device, a display, and an input device.


How do you display the square root symbol on output screen using C Plus Plus?

The the square root symbol can be displayed by using ASCII code cout&lt;&lt;"press alt251"; pressing alt251 "&#65533;&#65533;"


Why output devices are required?

A display device such as a screen or monitor is an output device. Right from here we can already say that a display device is required to be able to visibly know what we are doing on a computer. (Even if you have a remote connection to that device you will be using a display device to view the contents of the remote device using another computers monitor.)Printers and speakers are examples of output devices. Printers are required to receive hard copies of information and Speakers are audio devices that are required to hear audible files.In short, without output devices will would not be able to view, hear, or hold data from a device.


How do you find power output?

by using tester


Advantages of using a touch screen?

is that it acts as both an input and output device.


What is softcopy output?

What is softcopy is a using electronic signals 2 display a temporary image on a surface such as video crt screen. Also, a data-file representation of the document, information, photograph, or music, written to a removable disk or a flash/thumb drive (etc.) is softcopy output.


What does it mean no external display is attached on computer screen?

This would generally be observed on a laptop/notebook system when you are using the integrated screen and do not have an external monitor attached. If you try to switch from one display to the other, it will tell you it has no external display to switch to.


What is a disadvantage in using tidal energy?

its power output is not predictable


Do you round off when using output power formula?

Yes, you do.


How do you display the square root symbol on the screen using Apple Pages?

option/alt V