Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 1411
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c=0,x,y;
- while (a!=0 && b!=0){
- cin>>a>>b;
- while (a>9){
- a=a/10;
- }
- x=a;
- while (b>9){
- b=b/10;
- }
- y=b;
- if (y==x)
- c++;
- }
- cout<<c-1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement