76 285
Assignments Done
Successfully Done
In May 2019

Answer to Question #30811 in C++ for princeyawar

Question #30811
Write a program that calculates square and cube of numbers from 15 to 25.
Expert's answer
#include <stdio.h>
int main () {
for (int i = 15; i <= 25; i++)
printf("number %d:\nsquare: %d\ncube: %d\n\n", i, i * i, i * i * 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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions