fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int a,b;
  5. cout<<"jasiu ile uczniow w klasie?"<<endl;
  6. cin>>a;
  7. cout<<"jasiu a ile you have cukierkow"<<endl;
  8. cin>>b;
  9. cout<<"no to kazdy uczen moze dostac "<<(b-1)/a<<endl;
  10. cout<<"a zostanie ci "<<b%a<<endl;
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
30 67
stdout
jasiu ile uczniow w klasie?
jasiu a ile you have cukierkow
no to kazdy uczen moze dostac   2
a zostanie ci   7