برنامج لحساب جذر أي عدد يدخله المستخدم حيث دالة الجذر هي sqrt
- برمجة
- برمجة سي بلس بلس
- 2021-04-13
- salsabeelalhams99111801528
الأجوبة
#include<iostream>
#include<cmath>
using namespace std;
int main(){
double n;
do{cout<<" enter the number";
cin>>n;
cout<<"the sqrtnroot
is:"<<sqrt(n)<<endl;
cout<<" Enter another number or to
press key zero exit";}
while(n!=0);
return 0;}