Computer Fundamental
5801012630092 Thanyanan Aiamsamang
วันเสาร์ที่ 12 กันยายน พ.ศ. 2558
Lab 4 : Summary of integers
void setup() {
println("summary = "+sum_int(20));
}
int sum_int(int count) {
int n = 0;
int sum = 0;
while (n <= count) {
sum += n;
n++;
}
return sum;
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น