Guest User

Untitled

a guest
May 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. code for 123456789*123456789 is dis correct ?????????
  2. #include<stdio.h>
  3. void main()
  4. {
  5. int n;
  6. long long double b,c,d=0;
  7. int a[10]={1,2,3,4,5,6,7,8,9};
  8. printf("enter a no:");
  9. scanf("%d",&n);
  10. for(i=0;i<=n;i++)
  11. {
  12. b=a[i]*a[i];
  13. c=d+b;
  14. d=c;
  15. }
  16. printf("%lld",d);
  17. getch();
  18. }
Add Comment
Please, Sign In to add comment