where did the error go | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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"); } }

1st Dec 2021, 12:48 PM
ABDULAZIZ RAHIMOV
ABDULAZIZ RAHIMOV - avatar
1 Answer
+ 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
1st Dec 2021, 1:51 PM
Ipang