# Write a program to calculate sum of first 10 odd numbers.

#include<stdio.h>

int main(){

int i, sum=0;

for(int i = 1; i < 20; i = i+2)
sum += i;

printf("sum=%d", sum);

}

The output of above program is

sum=100