Skip to content

Instantly share code, notes, and snippets.

@thaiall
Created October 1, 2016 08:22
Show Gist options
  • Save thaiall/ecc9dd5aec1636597ea22af1e36c3ef0 to your computer and use it in GitHub Desktop.
Save thaiall/ecc9dd5aec1636597ea22af1e36c3ef0 to your computer and use it in GitHub Desktop.
โปรแกรมทำงานซ้อนกัน แล้วหาจำนวนรอบที่เกิดขึ้นทั้งหมด ด้วย ภาษา C
#include <stdio.h>
int main() {
int sum = 0;
for(int i=1;i<5;i++)
for(int j=1;j<i;j++) sum++;
printf("count= %d",sum);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment