#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
<\/p>\n
float babyloninan(float num, float guess)<\/p>\n
{<\/p>\n
float root = ((guess + (num\/guess))\/2.0);<\/p>\n
float root2 = ((root + (num\/root))\/2.0);<\/p>\n
<\/p>\n
return root2;<\/p>\n
<\/p>\n
}<\/p>\n
<\/p>\n
int main()<\/p>\n
{<\/p>\n
float x,y,raizcuadrada;<\/p>\n
<\/p>\n
cout<<“Ingresa el numero del cual quiere saber la raiz cuadrada: “;<\/p>\n
cin>>x;<\/p>\n
<\/p>\n
cout<<endl;<\/p>\n
<\/p>\n
cout<<“Ingresa un numero que se aproxime al resultado de la raiz: “;<\/p>\n
<\/p>\n
cin>>y;<\/p>\n
<\/p>\n
cout<<endl;<\/p>\n
<\/p>\n
raizcuadrada= babyloninan(x,y);<\/p>\n
<\/p>\n
cout<<“La raiz cuadrada de ” <<x<< ” es : “<<raizcuadrada;<\/p>\n
<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
For some reason I couldn’t upload this WSQ to my github but here it is: #include <iostream>using namespace std; float babyloninan(float num, float guess){float root = ((guess + (num\/guess))\/2.0);float root2 = ((root + (num\/root… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":129,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10593"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/129"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=10593"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10593\/revisions"}],"predecessor-version":[{"id":13004,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/10593\/revisions\/13004"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=10593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=10593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=10593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}