fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. float liniowa (float a ,float b, float x){
  5. return a*x+b;
  6. }
  7. float ulamek (float l, float n){
  8. return l/n;
  9. }
  10.  
  11. int main() {
  12. cout<<liniowa (3.5,3.5,3)<<endl;
  13. cout<<ulamek (9,2);
  14. return 0;
  15.  
  16. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
14
4.5