Question: Q 1 Write a program that does the following: i ) Use scanf to read 2 numbers and assign these to two variables ii )

Q1 Write a program that does the following:
i) Use scanf to read 2 numbers and assign these to two variables
ii) Print the contents of these two variables
iii) Swap the two numbers without using a temporary variable
iv) Do not use the method shared by a student in class
v) Print the contents of these two variables (after swapping)
vi) Output in the following format:
Before: x=3,y=5
After: x=5,y=3
Q2 Write a program that does the following:
i) Use scanf to read a number greater than 10 and less than 20,
ii) Use while loop to print a triangle as shown below
iii) Output as follows:
Enter a number greater than 10 and less than 20
13
OR
Enter a number greater than 10 and less than 20
12**
NOTE; ALL CODE MUST BE IN C LANGUAGE AND CODE MUST HAVE A EXPLANIATION .
Q 1 Write a program that does the following: i )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!