Quick actions

cmd+k|ctrl+k

Navigation

Languages

Task 78 Lab 5

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-12-10T19:29:14Z

Updated

2018-12-10T19:29:14Z

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    double S,y,i;
    S = 0;
    for (i=0;i<9;i++);
    y = sin((3.14/10)*i);
    S = S +(3.14/10) * y;
    cout<<S<<endl;
    return 0;
}
INFO