Joke Collection Website - Blessing messages - Java语言(一种计算机语言,尤用于创建网站)实现每隔3个数字换行,求解?
Java语言(一种计算机语言,尤用于创建网站)实现每隔3个数字换行,求解?
公共?班级?芬?{
公共?静电?作废?main(String[]?args)?{
//?托多?自动生成的方法存根int?I,j = ;for(I = 1;我& lt=1;i++){ if(I % 6 = = ){
system . out . print(I+" \ t ");j++;if(j%3==){//如果能被三整除就换行
system . out . println();
} } } system . out . println();?System.out.println("有"+j+"个数字");
}
}
- Previous article:Why did China Life get paid on 25th?
- Next article:How to unlock Xiaomi's mobile phone if it forgets the screen lock password?
- Related articles
- How do rural credit cooperatives use mobile banking software?
- Excellent composition for Valentine's Day
- Birthday greetings to the younger generation
- How does Alipay cancel its account?
- The difference between heaven 2m and Heaven W
- Congratulations on the Tenth Five-Year Plan
- How to check the tickets?
- Why didn't you reply by texting 10086?
- Appearance and characteristics of cheese carrier pigeons
- What should I do if the pi currency key fails?