try this one ...
#include<stdio.h>
int main()
{
int i=1,n,c=0;
printf("\n Enter the no of natural numbers u want to add\n");
scanf("%d",&n);
printf("\n The Sum is ...");
while(i<=n)
{
c+=i;
if(i!=n)
printf("%2d+",i++);
else
printf("%2d",i++);
}
printf("=%2d",c);
return 0;
}