My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
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;
}
Our fields of expertise
Programming
Math
Engineering
Economics
Physics
LATEST TUTORIALS
APPROVED BY CLIENTS
Thanks for the assistance,,, your service is great
#340795
on Jan 2024
Read all reviews >>