Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- typedef unsigned long long ullong;
- int main()
- {
- using std::cout;
- using std::cin;
- using std::endl;
- ullong n, proizvodCifri;
- cout << "Vnesi eden broj:\t";
- cin>>n;
- proizvodCifri=1;
- while (n>0)
- {
- proizvodCifri*=n%10;
- n=n/10;
- }
- cout<<"Proizvodot na cifrite e:\t"<<proizvodCifri;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement