JAVA - Questions
108.
Write a program to print the following triangle?
1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5
1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5
121.
Write a program to find the trace of the matrix? [trace=sum of diagonal elements of the matrix]
140.
With the help of static, which will find length of any string?
Don’t use the STRLEN ( ) function.
Don’t use the STRLEN ( ) function.