EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: matrix-manipulation-problem / Level: beginner
951. Write a program to print all prime elements in the first and last rows of the matrix.
952. Write a program to print all composite elements in the first and last columns of the matrix.
953. Write a program to calculate the sum of all diagonal elements that are multiples of 5.
954. Write a program to calculate the product of all border elements that are multiples of 7.
955. Write a program to replace all diagonal elements with their product of squares.
956. Write a program to replace all border elements with their product of cubes.
957. Write a program to print all perfect square numbers in the first diagonal of the matrix.
958. Write a program to print all perfect cube numbers in the second diagonal of the matrix.
959. Write a program to check if the sum of all diagonal elements is divisible by both 3 and 6.
960. Write a program to check if the product of all border elements is divisible by both 7 and 11.
961. Write a program to replace all even numbers in the matrix with the sum of their row and column indices.
962. Write a program to replace all odd numbers in the matrix with the product of their row and column indices.
963. Write a program to print the matrix elements in a spiral pattern starting from the center and expanding outwards.
964. Write a program to print the matrix elements in a reverse spiral pattern starting from the outer edges.
965. Write a program to check if all elements in the diagonals are palindromic numbers.
966. Write a program to check if all elements in the borders are Fibonacci numbers.
967. Write a program to calculate the sum of all even elements in the first and last columns of the matrix.
968. Write a program to calculate the product of all odd elements in the first and last rows of the matrix.
969. Write a program to count how many elements in the matrix are divisible by both 6 and 8.
970. Write a program to count how many elements in the matrix are divisible by both 9 and 12.
971. Write a program to print all prime numbers in the diagonals of the matrix.
972. Write a program to print all composite numbers in the borders of the matrix.
973. Write a program to calculate the sum of all elements in the matrix divisible by both 3 and 5.
974. Write a program to calculate the product of all elements in the matrix divisible by both 7 and 9.
975. Write a program to replace all prime elements in the matrix with the sum of their row and column indices.
976. Write a program to replace all composite elements in the matrix with the product of their row and column indices.
977. Write a program to print the matrix elements in reverse diagonal order starting from the top-right corner.
978. Write a program to print the matrix elements in reverse diagonal order starting from the bottom-left corner.
979. Write a program to count how many elements in the matrix are divisible by both 4 and 6.
980. Write a program to count how many elements in the matrix are divisible by both 5 and 8.
981. Write a program to calculate the sum of all perfect square numbers in the first and last rows of the matrix.
982. Write a program to calculate the product of all perfect cube numbers in the first and last columns of the matrix.
983. Write a program to print all diagonal elements divisible by 7 and 13 in the matrix.
984. Write a program to print all border elements divisible by 9 and 15 in the matrix.
985. Write a program to check if the sum of all diagonal elements is divisible by both 8 and 12.
986. Write a program to check if the product of all border elements is divisible by both 10 and 14.
987. Write a program to print all prime elements in the first and last rows of a square matrix.
988. Write a program to print all prime elements in the first and last columns of a square matrix.
989. Write a program to replace all prime elements in the matrix with their greatest common divisor (GCD) with their row index.
990. Write a program to replace all composite elements in the matrix with their least common multiple (LCM) with their column index.
991. Write a program to calculate the sum of all Fibonacci numbers in the diagonals of the matrix.
992. Write a program to calculate the sum of all palindromic numbers in the borders of the matrix.
993. Write a program to replace all even numbers in the matrix with their nearest perfect square.
994. Write a program to replace all odd numbers in the matrix with their nearest perfect cube.
995. Write a program to print all diagonal elements that are multiples of 6 and 9.
996. Write a program to print all border elements that are multiples of 8 and 10.
997. Write a program to calculate the sum of all elements divisible by both 2 and 4 in the matrix.
998. Write a program to calculate the product of all elements divisible by both 3 and 6 in the matrix.
999. Write a program to check if the sum of all elements in the first and last rows is an even number.
1000. Write a program to check if the product of all elements in the first and last columns is an odd number.
Previous
1
...
19
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram