Computer Science, asked by patelradhey731, 9 months ago

write a program in java to print the square of the numbers from 1 to 10 also print the sum of it I will mark him brainleast who ever answers it right​

Answers

Answered by Vyomsingh
1

Answer:

<font color=red>

SEE MY POST BELOW AND PLS MARK ME AS BRAINLIST ❤️

Attachments:
Answered by pavithranatarajan855
0

Answer:

public class Maths{

public static void main(String args[])

{

int sum=0;

for(int i=1;i<=10;i++)

{

sum+=i;

System.out.println(i+"^2 is "+(i*i));

}

System.out.println(" sum= "+sum);

}

}

Explanation:

Please Mark me as Brainliest

I HOPE IT IS USEFUL FOR YOU!

Similar questions