Guest User

Untitled

a guest
Feb 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class Solution {
  2. public static void main(String[] args) throws Exception {
  3.  
  4. int a = 1, f = 5;
  5. for (; (a += f + 1) < 7;) {
  6. f = a % (f + 1);
  7. }
  8.  
  9. System.out.print(f * a);
  10. }
  11. }
  12. //Вывод: 35
Add Comment
Please, Sign In to add comment