fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. float t[2];
  5. float suma, roznica, iloczyn, iloraz, nic;
  6. int main() {
  7.  
  8. for(int i=0; i<2; i++)
  9. {
  10. cin>>t[i], t[i+1];
  11. suma = t[0]+t[1];
  12. roznica = t[0] - t[1];
  13. iloczyn = t[0]*t[1];
  14. iloraz = t[0]/t[1];
  15. if(t[1]==0)
  16. return suma == t[0];
  17. roznica == t[0];
  18. iloraz == nic;
  19. iloczyn == 0;
  20. }
  21. cout<<endl<<"dodawanie:"<<suma<<endl;
  22. cout<<"odejmowanie:"<<roznica<<endl;
  23. cout<<"dzielenie:"<<iloraz<<endl;
  24. cout<<"mnozenie:"<<iloczyn<<endl;
  25. }
  26.  
  27.  
Runtime error #stdin #stdout 0s 15224KB
stdin
3 4
stdout
Standard output is empty