Connect Me

twitterfacebookgoogle plus email

  Instagram View Biwas Bhattarai's profile on LinkedIn

C Program to display the sum of first 10 even numbers.


#include<stdio.h> #include<conio.h> int main() { int i,s=0;
printf("First 10 natural numbers are:\n"); for(i=2;i<=20;i=i+2) { s=s+i; } printf("Sum of first 10 even numbers is %d\n",s); getch(); }

Ą
https://www.flickr.com/photos/spklg/15211044551/