0

How to write a program that accept many numbers and print square root of each in c++?

24th Sep 2020, 12:06 PM
Harshal sangame
Harshal sangame - avatar
5 Antworten
+ 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; }
24th Sep 2020, 1:27 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
The Darkness i think he changed Question
5th Oct 2020, 4:39 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
The Darkness no problem i think he can get new logics for finding root don't delete
5th Oct 2020, 5:01 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Check out my code here. make sure to terminate input list with 0. https://code.sololearn.com/cHM3vnS24iJ5/?ref=app
26th Sep 2020, 2:28 AM
The Darkness
The Darkness - avatar
0
♨️♨️ I will leave the code. I just meant that I will delete my extra messages to prevent unrelated content.
5th Oct 2020, 5:04 PM
The Darkness
The Darkness - avatar