Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab 5

Snippet info

Language

Cpp

Visibility

public

Author

sergey

Created

2019-10-26T13:18:28Z

Updated

2019-10-26T13:36:35Z

#define _USE_MATH_DEFINES
#include<iostream>
#include <cmath>
using namespace std;
int main()
{
    double f, e = M_E, z = 1.25*pow(10,-4), p0 = 1.29, p;
    for (int h=0; h<=1000; h+=100){
        f=-1*h*z;
        p = p0*pow(e,f);
        cout<<"h = "<<h<<" --> "<<"p = "<<p<<endl;
      }
    
    
    return 0; 
}
INFO