#include<iostream.h>
#include<conio.h>
void main()
{
int sum, n, i ;
float av;
clrscr();
cout<<"\n Enter the Value of N:";
cin>>n;
sum=0;
i = 1;
do
{
sum= sum + i ;
i = i + 1;
}
while( i <= n);
cout<<"\n Sum is: "<<sum;
av=(float) sum/n;
cout<<"\n Average is :"<<av;
getch();
}