0
Wher is mistake?
#include <iostream> using namespace std; int main(){ int a, b, c, d; cout <<"Enter a" << endl; cin >> a; cout<<"Enter b"<<endl; cin>>b; cout<<"Enter c"<<endl; d=sqrt(a*a+b*b+c*c); cout<<d; return 0; }
5 Antworten
+ 2
You're missing:
#include <cmath>
You need it for the sqrt function
+ 3
Also, there is no cin >> c
0
you missed cin>>c;
as well for sqrt you should add library <math.h>
0
All is correct except for the declaration of C and function <math.h>
0
Is the declaration of d not needed??