4.5.1 Why bother with functions?

来源:互联网 发布:cloudflare nginx 编辑:程序博客网 时间:2024/04/25 11:48

TRY THIS

Implement square() without using the multiplication operator; that is, do the x*x by repeated addition(start a variable result at 0 and add x to it x times). Then run some version of "the first program" using that square().

 

 

原创粉丝点击