Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab4_19

Snippet info

Language

Cpp

Visibility

public

Author

matho.camara

Created

2018-10-30T15:45:02Z

Updated

2018-10-31T07:52:26Z

#include <iostream>
#include <math.h>
using namespace std;

int main() {
    //19.  x[ 4, 5, ..., 28], y : y = 2t2 + 5,5t - 2, t = x + 2.
    int t;
    //computing t values
    for(int i=4;i<=28;i++)
    {
        t=i+2;
        cout<<"t="<<t<<endl;
        cout<<"y1="<<2*pow(t,2)+5<<endl;
        cout<<"y2="<<5*t-2<<endl;
        cout<<"----------------------"<<endl;
    }
    
    return 0;
}
INFO