Home Takes # 2 programming
fundamentals section 1C/B
Q1. Write a program in C++ to perform addition of two variables your program should take
input from user for addition and print the result on the console.
Q2. Write a program in C++ to perform subtraction of two variables your program should take
input from user for addition and print the result on the console.
Q3. Write a program in C++ to perform division of two variables your program should take input
from user for addition and print the result on the console.
Q4. Write a program in C++ declare and initialise integer variable x and your program should
Returns the absolute value of x. you can only use build-in functions of cmath.h library.
Q5. Write a program in C++ print all information on the right side of the console using
formatting techniques in C++ such as right keyword.
Q6. Write a program in C++ declare integer variable and take input from user in it print the
value on the console after performing increment operation.
Q7. Write a program in C++ declare character variable and take input from user in it print the
value on the console after performing increment operation.
Q8. Write a program in C++ declare character variable and take input from user in it print the
value on the console after performing decrement operation.
Q9. Write a program in C++. Your program should compute the expression given below.
2X+4B+C=0
And increment by one and print the result on the console.
Q10. Write a program in C++ to print “I’m on the right side of the console” on the right side of
the console using setw().
Tasks Submission Link:
Post a Comment