Programming Exercises
1. Write a program to display the equation of a line in the form "ap + bq = c", for a = 10, b = 5 and c = 20
Get Solution >>
Get Solution >>
2. Write a program that will print your mailing address in the following form
- First Line: Name
- Second Line: Door No, Street
- Third Line: City, Pin Code
3. Write a program to output the following multiplication table:
4. Given the values of three variables a, b and c, write a program to compute and display the value of x, where x = a / b-c
- Execute your program for the following values:
5. Given two integers 20 and 10, write a program that uses a function add() to add these two numbers and sub() to find the difference of these two numbers and then display the sum and difference in the following form:
20 + 10 = 30
20 - 10 = 10
Get Solution >>
20 + 10 = 30
20 - 10 = 10
Get Solution >>
Nice and genuine information.
ReplyDeleteThis is my website related to technology tips in english, please visit it.
https://www.technologytips.info/