You are on page 1of 1

1.

Write a program to swap two numbers using

• Temporary variable

Value of m is 2 and Value of n is 4


• Bitwise operator.
Enter the first number: 5
Enter the second number: 9
Before swapping:
x = 5, y = 9
After swapping:
x = 9, y = 5

2. Write a program to
• add two numbers
Sum of 3 and 11 is: 14

• multiply two numbers


Enter first number: 15
Enter second number: 2
Output: 30

3. write a program to draw a KITE


$
$$$
$$$$$
$$$$$$$
$$$$$$$$$
$$$$$$$
$$$$$
$$$
$
$$$
$$$$$

You might also like