“SQRT CPP” Kode Jawaban

SQRT CPP

#include <math.h>

//get square root of a number "b"
int main(){
  	int a = 2; //declare number you want to take square root of
  	int sqrtNum = sqrt (a); //assign the sqrt value to a variable
  	cout << sqrtNum << endl;
	return 0;
}
Wrong Wolf

sqrt dalam c

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int x = 625;
	int result = sqrt(x);
	cout << "Square root of " << x << " is " << result << endl;
	return 0;
}
BreadCode

Jawaban yang mirip dengan “SQRT CPP”

Pertanyaan yang mirip dengan “SQRT CPP”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya