Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class B10207081{
- public static void main(String args[]){
- int num=0,n=10;
- while(n<=30){
- if(n%2==0)
- num+=n;
- n++;
- }
- System.out.println("總合為:"+num);
- System.out.println("B102107081");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement