Print Statement
The bhana statement is used to print a value or expression to the output.
Syntax
bhana(expression);Basic Usage
You can use bhana to print a string literal:
bhana("Hello, World!");Printing Expressions
You can also use bhana to print the result of an expression:
bhana(5 + 3); :) Output: 8Printing Variables
You can print the value of a variable:
purna age;
age = 25;
bhana("Age: ");
bhana(age); :) Output: Age: 25Combining Multiple Prints
You can use multiple bhana statements to build more complex output:
purna a;
purna b;
purna sum;
a = 5;
b = 10;
sum = a + b;
bhana("The sum of ");
bhana(a);
bhana(" and ");
bhana(b);
bhana(" is ");
bhana(sum); :) Output: The sum of 5 and 10 is 15Next Steps
Now that you understand the print statement in Lipi, you can learn more about: