Write a c program to find the square of numbers from 4-9 using any loop
Answers
Answered by
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
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
English,
5 months ago
Science,
5 months ago
Computer Science,
5 months ago
English,
11 months ago
Psychology,
11 months ago
Math,
1 year ago
Math,
1 year ago