Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chapterSix;
- public class Variousloops
- {
- public static void main(String[] args)
- {
- {
- int PowerSum = 0;
- for(int s = 1; s <= 100; s++)
- {
- PowerSum = PowerSum + s^2;
- }
- System.out.println(PowerSum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement