• Register

Recent posts tagged program

19 1 2 min.
While programming, we come across certain conditions in which we need to validate the user input before proceeding to the next step. These programs seem difficult if you are a beginner or are not familiar with the built-in functions. In this article,...
posted 3 days ago Hafsa_Rao 28,528 points
19 0 6 min.
Overview classes in java:Today we know about classes and superclass in Java. You may have heard about classes and objects while learning programming language.  Many students know a lot about this. And some students are still some students who un...
posted 6 days ago Tania 800 points
27 0 1 min.
Overview:Today we will count even and odd numbers in our program. You will be given an array. You will count even and odd numbers in it.Even & odd in c++ code:#include <stdio.h> void main() { int array[80], i, num; ...
posted Jul 18 Tania 800 points
25 1 7 min.
Pointer in C++:If any c learning programmer is asked what is the most difficult thing in c language?  So the straightforward answer would be pointers. Other languages ‚Äč‚Äčalso have pointers, but they are rarely used. Early programmers have a harde...
posted Jul 17 Tania 800 points
18 0 1 min.
Introduction whole number in python:Today we will talk about the very important question of how to check whether the numbers are whole or not in Python. For this we create a program and first we take the number from the user. So whatever number is ta...
posted Jul 12 Tania 800 points
13 1 1 min.
Overview  Today we are going to talk about a very important topic, how to use the reverse function in Python. As you may have known by now that all the functions of Python are very simple.  Similarly, reverse also means to invert somet...
posted Jul 8 Tania 800 points
4 0 5 min.
COLLATZ SEQUENCEIn this post we will be discussing about the Collatz sequence and how to obtain such sequence by writing the code in C++.Basically Collatz sequence is obtain by the following steps, if number is odd then multiply by 3 and add 1 to it,...
posted Jun 30 mayankpathak 118 points
3 0 3 min.
Every operating system, and this includes Windows, is a set of programs, services and executables in general that fulfill different functions.It is not an indivisible whole, it is made up of small pieces that are part of a large gear&n...
posted Jun 25 amna 113,233 points
27 0 2 min.
Hi Geeks, In this article we gonna see a very basic programming problem that can be asked in any coding competition or the coding round during any interview process.Let’s directly check what the problem is about ?Write a C++ program to add two ...
posted Jun 18 mayankpathak 118 points
17 0 1 min.
In this post, we will take a look at a java program that will display student details. We will use the simplest approach to understand this program.Here, we will display the name, roll no, age, and marks of 5 subjects.In this program, First, we ...
posted Jun 12 Being human 157 points
41 2 1 min.
Here, we will write the Java programs to sort the array in descending order. Consider a list of an array element in an unsorted format, we will sort them in descending order.Algorithm:Take the input size of an element.Use a loop to Input array e...
posted Jun 2 Being human 157 points
27 0 1 min.
Here, we will see the simplest solution for finding a specific character in a string in java. We will be using the String built-in function to execute this program:Algorithm:Take input string from the user.Take the input character you want to se...
posted May 31 Being human 157 points
18 0 2 min.
If you are a fresher, you might have encountered this question in your interviews i.e program to find a maximum and minimum number in an array in java. Let us understandAlgorithm to find the maximum and minimum number in an array in javaTake the...
posted May 30 Being human 157 points
13 0 1 min.
If you have faced an interview, you might have encountered this question which is repeatedly asked to test the Logic of a Student. So, let us understand the program.Algorithm to find duplicate characters in a string in JavaFirst, Enter the StringCove...
posted May 29 Being human 157 points
9 0 1 min.
If you are fresher, you might have faced an interview in which the interviewer might have asked you to write this program i.e Find first non repeating character in a string. Let us discuss this in detail.Following are the steps involved:Fir...
posted May 28 Being human 157 points
6 0 2 min.
Using Arrays.sort method to Find Maximum and Minimum Values in an Array int[] nums={6,-1,-2,-3,0,1,2,3,4};Arrays.sort(nums);System.out.println("Minimum = " + nums[0]);System.out.println("Maximum = " + nums[nums.length-1]);You...
posted May 20 Sanjana Sagar 499 points
6 0 5 min.
To create a C++ project in Visual Studio 2019From the main menu, choose File > New > Project to open the Create a New Project dialog box.At the top of the dialog, set Language to C++, set&n...
posted May 20 Sanjana Sagar 499 points
0 0 2 min.
C program to replace a word in a string without using function Algorithm to Replace a substring in a string Input the full string (s1).Input the substring from the full string (s2).Input the string to be replaced with the substring (s3).Fin...
posted May 20 Sanjana Sagar 499 points
0 0 2 min.
C program to print all combinations of a 4-digit numberThe main idea behind the solution to this problem is to find out the combination of 0,1 and 3. First of all, we will put the user-provided numbers in an array. Then using three&nbs...
posted May 19 Sanjana Sagar 499 points
0 0 1 min.
Function overloading and overriding in c++ with example Difference between function overloading and function overridingNow that we understand what is function overloading and overriding in C++ Programming, lets see the difference between them:1)...
posted May 19 Sanjana Sagar 499 points