tc1017

WSQ10…

For this programm we had to create a function to calculate the square of a number using the babylonian method. First, I had to investigate what the heck was the Babylonian Method because I had no clue. It was easy after I found this flowchart that I will post below. Also I included another function that calculated the square root in the traditional way just to verify that the babylonian method was correct.

***Important stuff***

+Functions are everything. Basically this partial was all about functions.

+Remember there are several ways to do the same thing.

+Do your programms by parts.

 

22773381_1987404944806396_2038242645_n (1).png

GitHub: https://gist.github.com/CesarR99/4321422d66ec668c46efdb6f724418a3

 

Standard

Leave a comment