Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  212344455
Language: C/C++
Code:
#include <iostream.h>
#include <conio.>
#include <math.h>
void main()
{
clrscr ();
float x,y,h=0.1,S,D=1;
for(x=0;x<=3;h)
{
y=12.4*sin(abs(x/2.1))-8.3*cos(1.2*x);
while(y<-3.2||y>0)
S+=y;
D*=y;
}

cout<<"S="<<S<<"\n";     
cout<<"D="<<S<<"\n";
getch();
}
Comments: