Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a;
- cout<<"Wuwedi promenliwa: ";
- cin>>a;
- int edinici = a % 10;
- int desetici = (a % 100) / 10;
- int stotici = (a / 100) % 10;
- cout<<"Stotici = "<<stotici<<"\n";
- cout<<"Desetici = "<<desetici<<"\n";
- cout<<"Edinici = "<<edinici<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement