print the square roots of the first 25 odd positive integers using do while loop.
1
Expert's answer
2019-11-17T12:16:07-0500
// do_loop.cpp#include<iostream>#include<cmath>intmain(){
int i = 1;
int count=0;
do {
std::cout << "Sqrt(" << i << ") = " << std::sqrt(i) << std::endl;
i+=2;
count++;
} while (count<25);
return0;
}
Comments