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