Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <math.h>
- using namespace std;
- void liczenie(int &liczba,int *l1, int *l2, int *l3)
- {
- *l1=liczba/100;
- *l2=(liczba/10)%10;
- *l3=liczba%10;
- cout<<*l3<<'\t'<<*l2<<'\t'<<*l1;
- };
- int main()
- {
- int liczba,l1,l2,l3;
- cout<<"podaj liczbe"<<endl;
- cin>>liczba;
- liczenie(liczba,&l1,&l2,&l3);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement