Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class main {
- static void Owo (int n) {
- int b = 0;
- int ab = 0;
- int c = 0, a = 0;
- for (int i = 100; i < n; i++) {
- if (((i / 100) + (i % 100 / 10) + (i % 100 % 10)) % 13 == 0){
- ab = ab + 1;
- }
- }
- System.out.println(ab);
- }
- public static void main(String args[]) {
- Scanner sc = new Scanner(System.in);
- int n = sc.nextInt();
- Owo(n);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement