0
How to write a program that accept many numbers and print square root of each in c++?
5 odpowiedzi
+ 5
See this program if u want to take input from user u can use cin in while() loop under brac.
#include <iostream>
using namespace std;
int main() {int j=0,i=1;
while(i<100){
j=i*i;
cout<<"square is "<<i<<" * "<<i<<" = "<<j<<endl;
i++;
}
return 0;
}
+ 2
The Darkness i think he changed Question
+ 2
The Darkness no problem i think he can get new logics for finding root don't delete
0
Check out my code here.
make sure to terminate input list with 0.
https://code.sololearn.com/cHM3vnS24iJ5/?ref=app
0
♨️♨️ I will leave the code. I just meant that I will delete my extra messages to prevent unrelated content.