Write program to find the sqrt of number between (50 _ 100) ? C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write program to find the sqrt of number between (50 _ 100) ? C++

#include <iostream> using namespace std; void main() { int a ; cout<<"inter"; cin>>a; for (a=50; a<=100; a++) cout<<"the="<<square (a); cout<< endl ; } return 0; }

16th Apr 2020, 11:32 AM
Wesam C Ronaldo
Wesam C Ronaldo - avatar
1 Answer
+ 1
#include <iostream> #include <math.h> using namespace std; int main() { int a ; for (a=50; a<=100; a++){ cout<<"the="<<sqrt(a); cout<< endl ; } return 0; }
17th Apr 2020, 10:41 PM
Jakub Havlicek
Jakub Havlicek - avatar