Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int cif,n;
- ///cifra de control-metoda simpla si usor de inteles
- cin>>n;
- cif=n%9;
- if(cif==0)
- cif=9;
- cout<<cif<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement