0% found this document useful (0 votes)
18 views

Assignment: 1) Create A Table For Any Number

This document contains instructions for 3 programming assignments: 1) A program that takes a user-input number and multiplies it by integers 1 through 10, printing the results. 2) A program that swaps the values of two variables using a third temporary variable. 3) A program that determines if a user-input number is even or odd, and also tests if it is a prime number.

Uploaded by

Kapil Sharma
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)
18 views

Assignment: 1) Create A Table For Any Number

This document contains instructions for 3 programming assignments: 1) A program that takes a user-input number and multiplies it by integers 1 through 10, printing the results. 2) A program that swaps the values of two variables using a third temporary variable. 3) A program that determines if a user-input number is even or odd, and also tests if it is a prime number.

Uploaded by

Kapil Sharma
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
You are on page 1/ 1

Assignment

1) Create a table for any number.


REPORT ZLOOP_ASSIGNMENT.
Data : Counter type I, PNum type I.
Parameter Number type I.
Counter = 1 .
Write:/ 'Enter Number in TextBox'.
Uline.
do 10 times.
PNum = Number * Counter .
Counter = Counter + 1 .
write:/ PNum.
enddo.

2) Swap two numbers 3 techniques apply another


technique
Parameter A type I.
parameter B type I.
Data : C type I.
C = A.
A=B.
B=C.
Write:/A .
write:/ B .

3) Find Number Odd/Even and Prime/ Non Prime


parameter n type I.
data : A type I.
A = n mod 2 .
if A = 0.
write:/ ' This is Even Number'.
else.
write:/ 'Number is Odd'.
endif.

You might also like