Search found 2 matches

by naseefcuet
Fri Nov 06, 2009 6:16 pm
Forum: Volume 117 (11700-11799)
Topic: 11715 - Car
Replies: 14
Views: 4512

Re: 11715 : Car problem

@sms.islam
post your code.....This is a simple problem....there should be some sill ymistakes in your code.... :)
by naseefcuet
Mon Jul 20, 2009 7:05 am
Forum: Volume 109 (10900-10999)
Topic: 10929 - You can say 11
Replies: 69
Views: 26393

Re: 10929 - You can say 11

Don't know why I am getting WA...Here is my code.... #include<stdio.h> #include<string.h> int main() { long long i,j,k,s; char n[1000]; while(1) { s=0; scanf("%s",&n); i=strlen(n); if(n[0]=='0' && n[1]=='\0') break; for(j=0;j<i;j++) { s=s*10+n[j]-'0'; } if(s%11==0) printf("%lld is a multiple of 11.\...

Go to advanced search