Answer to Question #29599 in Action Script | Flash | Flex | ColdFusion for joe

Question #29599
wite a c++ program to print all integers from 1 to 20 and their square roots.
1
Expert's answer
2013-05-07T09:16:24-0400
#include <stdio.h>
#include <math.h>

int main() {
for (int i = 1; i <= 20; i++) {
printf("square root of %d is %.6lf\n", i, sqrt(i));
}
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS