Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int A;
- int Sum = 0, Br = 0, Ost = 0;
- cout << "Vavedi num A = "; cin >> A;
- do {
- Ost = A % 10;
- A = A / 10;
- if(Ost == 3){
- Br++;
- }
- } while (A != 0);
- cout << "Broi na 3-kie: " << Br << '\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement