Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code for 123456789*123456789 is dis correct ?????????
- #include<stdio.h>
- void main()
- {
- int n;
- long long double b,c,d=0;
- int a[10]={1,2,3,4,5,6,7,8,9};
- printf("enter a no:");
- scanf("%d",&n);
- for(i=0;i<=n;i++)
- {
- b=a[i]*a[i];
- c=d+b;
- d=c;
- }
- printf("%lld",d);
- getch();
- }
Add Comment
Please, Sign In to add comment