Uva 12468 – Zapping

Problem:- http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3912

Solution :-

int main()
 int a,b,i,c;
 while(scanf(“%d%d”,&a,&b)==2&& a>=0&&b>=0)

 return 0;
At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .

Posted by Shipu Ahamed

1 comment

Anulata sarker
Why 50? Why we can’t use 40 or 60?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.