Advertisement
PatrickSwayze

Untitled

Nov 15th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     double liczba=0,piercal=0,ostulam=0,liczba1;
  9.     {
  10.         piercal=0;
  11.     cout<<"Wpisz liczbe rzeczywista: ";
  12.  
  13.     cin>>liczba;
  14.     liczba1=liczba;
  15.  
  16.     piercal=(int)liczba%10;
  17.  
  18.     cout<<piercal<<endl;
  19.  
  20.  
  21.     } while(liczba1!=0);
  22.  
  23.         cout<<"Koniec programu."<<endl;
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement