SHARE
TWEET

sho_1

a guest Feb 24th, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.company;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         int sum = 0;
  7.  
  8.         for (int i = 3; i <= 99; i = i + 1) {
  9.             if (i % 3 == 0) {
  10.             sum = sum + i;
  11.             }
  12.         }
  13.         System.out.println(sum);
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top