DEV Community

hema latha
hema latha

Posted on

Programming basics

  1. normal statements

"Normal statements" in programming refer to basic, straightforward instructions that directly execute a single action, like assigning a value to a variable, performing a simple calculation, or printing output to the console; essentially, any statement that follows the standard flow of execution without introducing conditional logic or loops, unlike control flow statements like "if", "else", "for", or "while".
Examples of normal statements:

Variable assignment: x = 5 (Assigns the value 5 to the variable "x") 
Enter fullscreen mode Exit fullscreen mode

Arithmetic operation: result = num1 + num2 (Adds "num1" and "num2" and stores the result in "result")
Function call: print("Hello World") (Prints the string "Hello World" to the console)

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more