Sunday, January 21, 2018

[Bioinformatics 101] 002. Working with variables! - What is a variable?



Hello! This is Kenneth J Han!

In this post, we are going to calculate the area of a circle given the radius is 3.




002. Working with variables!

Problem
Calculate the area of a circle given the radius is 3.
The process of calculation should use the variables - r, PI and area.
Pseudocode
r ← 3
PI ← 3.14
area ← r * r * PI
Answer
28.26

If you have difficulties solving problem, visit the links below!
Your source code is on ready to serve!

Python source code answer on Github
Java source code answer on Github








See you on next post!

0 개의 λŒ“κΈ€:

Post a Comment