0
where did the error go
#include <iostream> #include <math.h> using namespace std; int main(){ double n,m,i,j,y; j=1; while(j=100); do { y=pow(i,2)+pow(j,2)+1; cout<<"\n j="<<j<<"i="<<i<<"y="<<y; j=j-1; for(i=1;m=100;i=i+1){ y=pow(i,2)+pow(j,2)+1; cout<<endl; } while(j=100); cout<<endl; system("pause"); } }
1 Odpowiedź
+ 2
C++ uses <cmath>, <math.h> is the one for C.
Can you describe what the program was supposed to do?
And please, avoid writing codes into the tags, it's not the purpose of tags ☝
https://code.sololearn.com/W3uiji9X28C1/?ref=app