- 1
Prelab Exercise: In C++, how do you compute the side length of a square whose area is stored in the variable area?
Variables: int length,area; The formula of square area length Don't forget to use the <cmath> stream.
3 Respostas
+ 2
#include <iostream>
#include <math.h>
using namespace std;
int main(void){
	float area, length;
	
	cout<<"Enter the area of a square: ";
	cin>>area;
	
	lenght = sqrt(area);
	
	cout<<"Lenght of the square = "<<length;
	return 0;
}
+ 2
Thanks buddy for appreciation 
0
thank you



