Computer Science, asked by swasan1653, 9 months ago

Write a c program to find the square of numbers from 4-9 using any loop

Answers

Answered by Nithinraj30775N
0

Explanation:

#include<stdio.h>

int main()

{

int x;

for(x=4; x<=9; x++)

printf("the square of %d is\n", x, x*x);

return 0;

}

*Output

the square of 4 is 16

the square of 5 is 25

the square of 6 is 36

the square of 7 is 49

the square of 8 is 64

the square of 9 is 81

*Mark me brainliest*

Answered by Soñador
2

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int i;

for(i=4;i<=9;i++)

{

cout<<"square of "<<i<<"="<<i*i<<"\n";

}

getch();

}

Similar questions