SHARE
TWEET

Ultima cifra dintr-un numar

ValerianBenchea Oct 21st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.   int n, c;
  8.   cout<<"n=";
  9.   cin>>n;
  10.   c=n%10;
  11.   cout<<"Ultima cifra este "<<c;
  12.  
  13.     return 0;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top