Question1
1. Create a program that asks the user for his first name, his middle name and his last name. Then print:
"Your initials are_ _ _ _ _"
SOLUTION
code:
Output:
Question2
Let's say your company has a product with this lot number: "037-00901-00027".
037 is the country code. 00901 is the product code. 00027 is the batch number.
Create a program to print:
Country code: _ _ _
Product code: _ _ _
Batch code: _ _ _
SOLUTION
code:
output:
Using the individual index we learnt from indexing, We printed out the various components of our lot number.
Good Luck. See you next time!
No comments:
Post a Comment