Display four patterns using loops) Use nested loops that display the following patterns in four separate programs.
Pattern A
123456
1 6
1 6
1 6
1 6
123456
Pattern B
1
123
12345
1234567
123456789
Pattern C
3
3 3
3 3 3
3 3
3
Pattern D
1
12
123
1234
12345
123456
Make a calculator using if-else-if else statement which perform the addition, subtraction, multiplication, division and remainder operations. Take values and operator from user on runtime. Use do while loop for user choice. Means after performing one operation program will ask from user “do you want to do another calculation(yes/no)? ”. If user press then user will enter number 1, number 2 and operator for calculation and if user press no then terminate the loop.
1. Write a C++ program that will find minimum number in an array?
1. Write a C++ program that will find maximum number in an array?
1. Write a C++ program that will add two single dimensional arrays elements using random numbers?
1. How to generate random number in C++, write a simple C++ program that will generate random number from 1 to 100?
1. Write a C++ program that will create 2D array using random numbers and then show these values.
1. Write user defined function arrayFunction() in C++ which will initialize array by taking values from user at run time and then call this function in main function which will return this array from the calling function to the called function (to the main function) and then show all items of this array in main function using loop.
Make a calculator using if-else-if else statement which perform the addition, subtraction, multiplication, division and remainder operations. Take values and operator from user on runtime. Use do while loop for user choice. Means after performing one operation program will ask from user “do you want to do another calculation(yes/no)? ”. If user press then user will enter number 1, number 2 and operator for calculation and if user press no then terminate the loop.
Update your calculator using functions (Calculator you implemented in do while loop .Create separate functions for addition, subtraction, division, multiplication and remainder operations).