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
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