[ create a new paste ] login | about

Link: http://codepad.org/E3sm0z4k    [ raw code | output | fork ]

C++, pasted on Oct 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream.h>		
#include <stdio.h>
#include <math.h>
#include <conio.h>
const double a=-7.2,b=3.4;
int main ()
{
     float x, y, z, q, t;
     cout<< "Ââåäèòå ïåðåìåííûå\nx="; 
     cin>>x;
     cout<< "Ââåäèòå ïåðåìåííûå\ny=";
     cin>>y;
     t=(pow(sin(a/b),3/2))+(pow(cos(ads(2.7*a*b)),1/2));
     q=atan(exp(-a*x)+lg(pow(ads(x/y),1/7)));
     z=t/q;
     cout<<"\nz="<<z 
}


Output:
1
2
3
4
Line 18: error: conio.h: No such file or directory
In function 'int main()':
Line 13: error: 'ads' was not declared in this scope
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: