Sunday, January 21, 2018

[Bioinformatics 101] 005. for statement



Hello! This is Kenneth J Han!

In this post, we are going to look at for statement.




005. FOR Statement

Problem

Sum all integers from 1 to 10.

Pseudocode

sum ← 0

FOR i ← 1 TO 10
    sum ← sum + i
PRINT sum

Answer

55


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