/* To Calculate a number in the following manner
    (95 * 2) + (90 * 4 ) + ........................+ (1 * 94)
    and sum of the following series         */

#include<stdio.h>
main()
{
	long int i,j,count,sum,n;
	clrscr();
	printf("Enter how many numbers to be printed\n");
	scanf("%ld",&n);
	for(i=95,j=2,count=0,sum=0;count< n;count++,i-=5,j+=2)
		sum=sum + i * j;
	    printf("%ld",sum);
	getch();
}

/* input : 2
   output: 550  ie: (95* 2) + (90 *4)=190 + 360 = 550
   Exercise 1: sum of the following series
		1^3 + 2^3 + 3^3 +.............
	    2:  4^2 + 8^4 + 12^6+.............
*/