Starting from:

$30

CSE316 Offline Assignment 1-Solved

Q1: Take two numbers X and Y as inputs, perform the following operations, and store the outputs in variable Z. Finally, you will print Z as output. Assume X,Y,Z to be within 0 and 9.

•    Z = X − 2Y

•    Z = 25 − (X + Y )

•    Z = 2X − 3Y

•    Z = Y − X + 1

Q2: You will be given an uppercase letter as input and will have to

1.    print its previous letter in lowercase format. You need not handle corner cases (i.e., ‘A’ will not be given as input).

2.    print its one’s complement (e.g., 

More products