64 564
Assignments Done
99,3%
Successfully Done
In September 2018

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
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions