Imtiaz Ahmad
Pages
Home
Web Developing
Services
Portfolios
Photography
Contact me
About me
Saturday, December 17, 2011
C++ Programme for Print out the summation of square from 1 to n.
#include<stdio.h>
int main()
{
int i=1*1;
int ver;
int sum=0;
printf("Enter The veriable");
scanf("%d",& ver);
for( ;i<=ver;i++)
{
sum=i*i+sum;
}
printf("%d",sum);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment