2024/07/15
1.题目
2.解题
1.题目
2.解题
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int N = scanner.nextInt();int sum=0;for (int i=1;i<=N;i+=2){sum=sum+i;}System.out.println(sum);}
}