mysquareroot-assignment25

mysquareroot-assignment25 - cout<<"The square root...

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

View Full Document Right Arrow Icon
#include <iostream> #include <cmath> using namespace std; double number, mySquareRoot; int main () { cout << "Enter a number (a double): "; cin >> number; do { mySquareRoot = sqrt(number);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "The square root is " << mySquareRoot << endl; cout << "Enter a number (a double): "; cin >> number; }while (number >= 1); }...
View Full Document

This note was uploaded on 01/11/2010 for the course CMPSC 101 taught by Professor Drobish,renee during the Summer '07 term at Penn State.

Ask a homework question - tutors are online