Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)
Java Tutor, Author at Learn Java - Page 21 of 23
Latest :

Author Archives: Java Tutor

Hollow Pyramid Star Pattern Program in C

C Program to print a hollow pyramid star pattern – In this article, we will explain the several means to print a hollow pyramid star pattern in C programming. Suitable examples and sample programs have also been added so that you can understand the whole thing very clearly. The compiler has also been added with which you can execute it ...

Read More »

C Program : Non – Repeating Characters in A String | C Programs

C program to display all the non-repeating characters in a given string. To do so, we will require a string whose non-repeating characters are to be displayed as our input. The desired output here is, displaying every character that is non-repeating in the given input string. So initially, we will read a input string (c) at runtime using gets() function. ...

Read More »

C Program : Sum of Positive Square Elements in An Array | C Programs

C program to find the sum of positive square elements in a given array. We can call an element a positive square if the element is a perfect square. For this, we require the number of elements in the array or size of the array along with the data values of the array as input. The expected output is an ...

Read More »

C Program : Find Longest Palindrome in An Array | C Programs

Find the longest palindrome element in the given array in C Programming. We can call a number a palindrome when the number is equal to the reverse of the same number i.e., when read from forward or backward it is the same. For this, the inputs necessary are the size of the array or the number of elements in the ...

Read More »

C Program Lower Triangular Matrix or Not | C Programs

Write a C program to determine whether the given matrix is a lower triangular matrix or not. We call a square matrix a lower triangular matrix when all the elements above its main diagonal are zero whereas the ones below and on the diagonal are non-zero. For this, we require the size of the square matrix and the elements of ...

Read More »

C Program : Convert An Array Into a Zig-Zag Fashion

The given problem statement is, to write a C program to convert the array into zig-zag fashion i.e., converting it in the form where a<b>c<d>e<f. The input requirement for this is the number of elements (or size) in the array along with the data values or elements of the array. Our desired resultant output is an array converted into zig-zag ...

Read More »

C Program Merge Two Sorted Arrays – 3 Ways | C Programs

The problem statement here is, to write a C program to merge two sorted array in sorted order. To implement this, we’ll require the number of elements or sizes of the the two arrays along with the array elements in sorted order as our input. The desired output in the end is a single array which is the combination of ...

Read More »

C Program : To Reverse the Elements of An Array | C Programs

C program to display the given array in reverse order. To do so, we will require the number of elements or size of the array and the elements or data values of the array as inputs. Our expected output as clearly mentioned in the problem statement is, the array being displayed in the reverse order. C Program to Reverse an ...

Read More »

C Program : Minimum Scalar Product of Two Vectors | C Programs

C program to find the minimum scalar product (dot product) of given two vectors. A scalar product or dot product is the product of the given two equal length vectors. To find the scalar product, we require the number of elements or sizes of the two arrays representing the vectors and the data values of the arrays (or vectors). The ...

Read More »

C Program : Check If Arrays are Disjoint or Not | C Programs

Write a C program to find whether the given two arrays are disjoint set or not. We call two arrays disjoint set when they have no common elements between them. For checking this, we’ll first require the number of elements in the two arrays and the data values or elements in the two arrays as input. Our expected output as ...

Read More »
Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)