View Code of Problem 30

#include<stdio.h>
int main()
{
	int max,n;
	scanf("%d",&n);
	max=((1+n)/2.0)*n;
	printf("%d\n",max);
}

Double click to view unformatted code.


Back to problem 30