// do_loop.cpp #include <iostream> #include <cmath> int main() { int i = 1; int count=0; do { std::cout << "Sqrt(" << i << ") = " << std::sqrt(i) << std::endl; i+=2; count++; } while (count<25); return 0; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment