//sample function of sum int main(){ int i, sum; i = 1; sum = 0; while(i <= 100){ sum = sum + i; i = i + 1; } return sum; }