package com.zxs.process;标签:int,sum,System,num,测试,println,out From: https://www.cnblogs.com/xiaoxiaodeyan/p/17113714.html
public class forces {
public static void main(String[] args) {
/*
int sum = 0;
int num = 0;
for (int i = 0; i <= 50; i++) {
if(i%2==0){
sum=sum+i;
} //奇偶和
else {
num=num+i;
}
}
System.out.println("偶数和"+sum);
System.out.println("奇数和"+num);
*/
/*
for(int i=0;i<=100;i++){
if(i%5==0){
System.out.println(i);
}
}
*/
/*
for(int j=1;j<10;j++){
for(int i=1;i<=j;i++){
System.out.println(j+"*"+i+"="+i*j +"\t");
}
System.out.println();
}
*/
}
}