1 2 3 4 5 6 7 8 9 10 11
//sample function of sum int main(){ int i, sum; i = 1; sum = 0; while(i <= 100){ sum = sum + i; i = i + 1; } return sum; }