برنامج بلغة C++ لحساب الجذر التربيعى للرقم المدخل



اكتب برنامج بلغة C++ لحساب الجذر التربيعى للرقم المدخل 



#include <iostream>
using namespace std;
#include <math.h>
void main ( )
{
  float num, ans;
  cout << " Enter a number: ";
  cin >> num;
  ans = sqrt(num) ;
  cout << " square root is: " << ans << endl;
  system("pause");
}

0 التعليقات: