Search found 1 match

by vuduclong0309
Sat Sep 22, 2012 11:43 am
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 19220

382 problem on dev c++

i have tried all my best but the judge keep saying wa, can u help me fix this below code? #include <stdio.h> int sukk(int m) { int i,isum; isum=0; for(i=2;i<m;i++) { if(m%i!=0) continue; else isum+=i; } isum+=1; return isum; } int main() { int i,a[60000],b[60000],k; i=0; do { scanf("%d",&a[i]); if(!...

Go to advanced search