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;
}
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments