C program to check whether a number is negative, positive or zero – In this article, we will detail in on the multiple ways to check whether a number is negative, positive or zero 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 ...
Read More »Author Archives: Java Tutor
Java Program To Check Leap Year Or Not – 4 Ways
Java Program to find if a year is a leap or not. Here, we see the various methods to find out whether a year is Leap or not in Java In 5 different ways. Soon Compiler is added so that you can execute the program yourself, along with suitable examples and sample outputs. The methods used in this case are: ...
Read More »Left Arrow Star Pattern Java Program – Patterns
Java program to print Left Arrow star pattern program. We have written below the print/draw Left Arrow asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we have added compiler so that you can execute the below codes – List of Complete Pattern Programs in Java here. Print Left ...
Read More »Java Program To Display Transpose Matrix | 3 Ways
Java Program to display/print the transpose of a given matrix. The following program to print the transpose of a matrix has been written in three different possible ways which have been shared here: Using For Loop Using While Loop Using Do-While Loop The compiler has been added to the aforementioned, so that you can execute the programs, along with suitable ...
Read More »Java Program To Reverse An Array | Programs
Java program to reverse an array – We will discuss the various methods to reverse an array in Java. The compiler has been added so that you can execute the programs by yourself, alongside few suitable examples and sample outputs. The reverse an array Java program has been written in Two different ways here. Without Using Another Array Using Class ...
Read More »C Program To Find Reverse Of An Array – C Programs
C program to find the reverse of an array – In this article, we will explain the many means to find the reverse of an array 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 »Prime Number Java Program – 1 to 100 & 1 to N | Programs
Prime Number Java Program – Java Program to Check Whether a Number is Prime or Not using different methods. The compiler has also been added so that you can execute the programs yourself, alongside suitable examples and sample outputs added for each program. Also, we will see the method of how to find out prime numbers between 1 to n, ...
Read More »Hollow Diamond Star Pattern Java Program | Patterns
Java program to print hollow diamond star pattern program. We have written below the print/draw hollow diamond asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we added compiler so that you can execute the below codes. Using For Loop Using While Loop Using Do While Loop Using For ...
Read More »C Program Inverted Pyramid Star Pattern | 4 Ways – C Programs
C Program to print an inverted pyramid star pattern – In this article, we will detail in on the multiple ways to print an inverted 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 ...
Read More »Linear Search In Java Program – 2 Simple Ways | Programs
Java program for linear search – We will discuss the methods on how to carry out the linear search operation in Java. Compiler has been added so that you can execute the programs by yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: Linear Search – Using Array Linear Search – Using Recursion Linear Search In ...
Read More »