C-- assignment 3
C-- assignment 3
Basic Pay : TA :
HRA : DA :
*
***
*****
*******
*********
29. Write a program to print the following pattern:
*
* $ *
* $ * $ *
* $ * $ * $ *
* $ * $ * $ * $ *
30 . Write a C++ program to find the largest element of a given 1-D array of integers.
31. Write a C++ program to separate even and odd numbers of an array of integers. Put all even
numbers first, and then odd numbers.
32. Accept 5no. From user in 1D array and display perfect number?
33. Accept 5no. From user in 1D array and display prime number?
34. Accept 5no. From user in 1D array and display sum of digits?
35. Accept 10 no. from user in 1 d array and display complete accessing sorting.
36. Accept a integer in 3*3 array and display row wise sum?
37. Accept a integer in 3*3 array and display column wise sum?
38. Accept a integer in 3*3 array and display maximum of row wise?
39 Accept a integer in 3*3 array and display maximum of column wise?
40 Accept a integer in 3*3 array and display sum of diamonds?
41. Accept a integer in 3*3 array and display complete accessing sorting?
42. Accept a integer in 3*3 array and display second maximum numbers?