Computer Fundamental
วันอาทิตย์ที่ 13 กันยายน พ.ศ. 2558
prime_fo_num_lab4
void setup(){
sum_of_integers(100);
}
void sum_of_integers(int n){
int sum=0;
int count=0;
while(count<n){
count++;
sum=sum+count;
}
println("Sum is "+sum);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น