Search found 1 match

by Sadique
Mon Nov 04, 2013 6:15 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58075

Re: 10035 - Primary Arithmetic

Why I get wrong answer? I can not understand.[code#include<stdio.h> int main() { long long int a,b,c,d,rem,rem2,k,flag; while(1) { k=0; scanf("%lld%lld",&c,&d); if(c<=d) { a=d; b=c; } if(c>=d) { a=c; b=d; } if(a==0&&b==0) { break; } flag=0; for(;;) { rem=a%10; rem2=b%10; if(flag==1&&rem!=0) rem+=1; ...

Go to advanced search