C Program To Show Square Of Numbers And Find Their Sum | C Programming Arogya Thapa Magar at March 15, 2018 C Programming, C Program To Show Square Of Numbers And Find Their Sum#include<stdio.h>int main(){ int i=1,n,sq,sum=0; printf("Enter number:\n"); scanf("%d",&n); printf("number\tsquare\n"); while(i<=n) { sq=i*i; printf("%d\t%d\n",i,sq); i++; sum+=sq; } printf("sum is %d",sum); return 0;}OUTPUT Share To: NextNewer Post PreviousOlder Post Arogya Thapa Magar View Profile
Post A Comment:
0 comments so far,add yours