0% found this document useful (0 votes)
29 views26 pages

Print Command and Loop Examples

The document provides examples and explanations of print commands and functions in a programming language. It demonstrates how to print strings, use print inside loops to output repeating text, and how loops can be nested inside other loops to repeatedly print strings multiple times. Questions are included throughout for the reader to test their understanding of the print outputs.

Uploaded by

MamataMaharana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views26 pages

Print Command and Loop Examples

The document provides examples and explanations of print commands and functions in a programming language. It demonstrates how to print strings, use print inside loops to output repeating text, and how loops can be nested inside other loops to repeatedly print strings multiple times. Questions are included throughout for the reader to test their understanding of the print outputs.

Uploaded by

MamataMaharana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PRINT COMMAND

EXAMPLE

EXAMPLE
EXAMPLE

EXAMPLE

QUESTIONS
6.
PRINT STRING

OUTPUT
QUESTIONS
INPUT COMMAND
EXAMPLE
OUTPUT
LOOP

1)
2)

OUTPUT

3)
4)
5)

6)
7)
OUTPUT

8)
OUTPUT

9)
QUESTIONS
LOOP INSIDE LOOP

1)
OUTPUT

2)
3)

4)
5)

6)
QUESTIONS

You might also like