Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int lema()
- {
- int i;
- int sum = 0;
- for(i=0;i<=10;i++)
- {
- sum = sum + i;
- }
- return sum;
- }
- int main()
- {
- int totalSum = 0;
- totalSum = lema();
- totalSum /=2;
- printf("%d", totalSum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement