Write a functions named sqrIt () that computes the square of the value passed to it and displays the result. The function would be capable of squaring numbers with decimal points. Make sure your function is called from main() .
1
Expert's answer
2013-04-09T08:59:20-0400
#include <iostream>
float sqrlt( float x ) { float result = 0;
// calculate square result = x*x;
//Show result std::cout << "square=" << result <<"\n";
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment