Write program to generate the following
series and characters
1,4,9, 16, 25 ………… up to 10 terms
Attachments:
Answers
Answered by
1
Explanation:
The following program is in Java.
Using for loop
class Series
{
void input ( )
{
int i, s = 0;
for(i = 1; i < = 10; i++)
{
s = i * i;
}
System.out.print(s + " ");
}
}
I HOPE THIS ANSWER WILL HELP YOU AND PLEASE MARK THIS ANSWER THE BRAINLIEST ONE...
Similar questions