Home#1 Takes for Programming fundamentals section 1C/B

Q1. Write a program in C++ to add two integer variables and print their sum on the console.

Q2. Write a program in C++ to multiple two numbers and print their result on the console.

Q3. Write a program to declare variable of character type and print its value on the console.

Q4. Write a program to print information such as your name, SapID, email, section, degree etc. on the console.

Q5. Write a program in C++ to declare and initialise character variable and print the value on the console.

Q6. Write a program in C++ to print the ASCII value of the character variable. You can take help from ASCII table as you have seen in the class for this question.

Q7. Write a program in C++ to declare and initialise integer variable and update/change value of variable using Assignment operator = and print the value on the console.

Q8. Write a program in C++ to declare and initialise character variable and update/change value of variable using Assignment operator = and print the value on the console.

Q9. Write a program in C++ to declare and initialise float and double variable and update/change value of variable using Assignment operator = and print the value on the console.

Q10. Write a program in C++ to declare and initialise bool variable and update/change value of variable using Assignment operator = and print the value on the console.

Q11.  Write a program to solve equation 5a+7c+6d+e3=0 your program should take variable values form user and compute the equation, print the final value on the console.

 

Submission Link for Tasks:


 

Post a Comment

Previous Post Next Post