Real amounts and rates with an Integer number of years.
Real and IntegerDatatypes
Built from 3 kinds of block, between Start and End. Each one has a guide.
B4Coder writes the same program as real code. Change the flowchart in the editor and the code changes with it.
principal = float(input("Amount saved "))rate = float(input("Interest rate (% a year) "))years = int(input("Number of years "))interest = principal * rate * years / 100print("Interest: " + str(interest))How each block becomes code: Python · Java · C++ · C# · JavaScript