Answer to Question #38687 in C++ for marvy dale

Question #38687
loop statement in c++ display numbers 1 4 9 16 25 36 49 64 81 100
1
Expert's answer
2014-01-27T13:20:15-0500
#include <stdio.h>

int main() {
for ( int i = 1; i <= 10; i++ ) {
printf("%d ", i * i);
}
printf("\n");

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
New on Blog
APPROVED BY CLIENTS