Question: Q 1 Write a program that does the following: i ) Use scanf to read 2 numbers and assign these to two variables ii )
Q Write a program that does the following:
i Use scanf to read 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:
After:
Q Write a program that does the following:
i Use scanf to read a number greater than and less than
ii Use while loop to print a triangle as shown below
iii Output as follows:
Enter a number greater than and less than
OR
Enter a number greater than and less than
NOTE; ALL CODE MUST BE IN C LANGUAGE AND CODE MUST HAVE A EXPLANIATION
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
