Computer Science, asked by 928, 10 months ago

Write a program to print the squares and cube of numbers from 2to 9using do while loop

Answers

Answered by krishsrivastava18
0

Answer:

lagging fits the zug used TBC get ext fed exec dz ext CCR SFZ xrctxrhducycy

Answered by sushiladevi4418
0

Answer:

C program to print the squares and cube of numbers from 2 to 9.

Explanation:

#include <stdio.h>

#include <math.h>

 

int main()

{

   int i, n;

 

n=9

 

   printf("No     Square   Cube\n", n);

   for(i=2; i<=n; i++)

   {

       printf("%d \t %ld \t %ld \t %.2f\n", i, (i*i), (i*i*i));

   }

     

   return 0;

}

Similar questions