Code With Margaish
Powered by
Blogger
.
About us
Privacy Policy
Disclaimer
Contact Us
Home
Tuesday, 21 July 2020
Chapter 2
12. 2.18 (Comparing Integers) Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the larger number followed by the words "is larger." If the numbers are equal, print the message "These numbers are equal."
by :
Abdul Rehman Margaish
July 21, 2020
0
12. 2.18 (Comparing Integers) Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the l...
Read More
Chapter 2
by :
Abdul Rehman Margaish
July 21, 2020
0
2.17 (Printing) Write a program that prints the numbers 1 to 4 on the same line with each pair of adjacent numbers separated by one space. ...
Read More
Chapter 2
10. 2.16 (Arithmetic) Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference, and quotient of the two numbers.
by :
Abdul Rehman Margaish
July 21, 2020
0
10. 2.16 (Arithmetic) Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, pro...
Read More
C++
5.15 (Triangle-Printing Program) Write an application that displays the following patterns separately, one below the other. Use for loops to generate the patterns. All asterisks (*) should be printed by a single statement of the form cout << '*'; which causes the asterisks to print side by side. A statement of the form cout << '\n'; can be used to move to the next line. A statement of the form cout << ' '; can be used to display a space for the last two patterns. There should be no other output statements in the program. [Hint: The last two patterns require that each line begin with an appropriate number of blank spaces.]
by :
Abdul Rehman Margaish
July 21, 2020
0
5.15 (Triangle-Printing Program) Write an application that displays the following patterns separately, one below the other. Use for loops to...
Read More
C++
5.14 (Modified Compound-Interest Program) Modify the compound-interest application of Fig. 5.6 to repeat its steps for interest rates of 5%, 6%, 7%, 8%, 9% and 10%. Use a for loop to vary the interest rate.
by :
Abdul Rehman Margaish
July 21, 2020
0
Q 5.14 (Modified Compound-Interest Program) Modify the compound-interest application of Fig. 5.6 to repeat its steps for interest rates of...
Read More
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)