DanikYakush

Task14

Jul 4th, 2022
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. public class task14 {
  2.     public static void main(String[] args) {
  3.         long res= 0;
  4.         int count = 1;
  5.         while(count != 101){
  6.             res += count * count;
  7.             count++;
  8.         }
  9.         System.out.println(res);
  10.     }
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment