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";
Comments
Leave a comment