writeln and write

This lesson explores the difference between writeln and write with the help of a coding example.

Functions and parameters #

In the previous lesson, we learned that writeln takes a string within parentheses and prints the string. Before we move onto an example code to understand the difference between working of writeln and write, let’s get a little insight into some programming terms.

  • Functions: The parts of a program that ...