Untitled
unknown
plain_text
2 years ago
260 B
3
Indexable
import java.util.Scanner; public class Lab3 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); for (int i = 1 ; i <= n; i+=3) { System.out.println(i); } } }
Editor is loading...