Free programming tutorials — updated regularly

Master Programming with Simple,Clear Tutorials

Learn Java, C#, C, C++ and more with 1200+ free tutorials. No fluff, just code.

754+
Tutorials
4
Languages
100%
Free

Latest Tutorials

754 posts available

Reverse Words in a String — October 4, 2026

Given an input string s, reverse the order of the words. A word is defined as a sequence of nonspace characters. Words in s will be separated by at least one space. The reversed string should not contain leading or trailing spaces. Multiple spaces between two words should be reduced to a single spac

October 3, 2026Read more →

Count Good Pairs — October 3, 2026

Given an array of integers nums, a pair (i, j) is called a good pair if nums[i] == nums[j] and i < j. Return the number of good pairs. Input: An array of integers nums. Constraints: 1 <= nums.length <= 100 1 <= nums[i] <= 100 Output: An integer representing the total count of good pairs. Example: In

October 3, 2026Read more →

C nested if statements

This statement allows the user to use if block inside the other if block. And the inner if statement is executed only if the outer if statement’s condition is true. Syntax Syntax of nested if statement in C: nested if Flowchart: Example of nested if statement in C: The output of nested if

June 12, 2026Read more →

Java Program to Remove all the Vowels from a String

This post shows, How to remove all vowels from a string in java? with the help of replaceAll() method. Remove vowels from a string in java: Explanation:Removing vowels in java is easy, we will take the user input with the help of a Scanner class. we will use replaceAll() which takes in two para

June 12, 2026Read more →

C Program to Add Two Numbers Using Call by Reference

The program takes the two numbers from the user and passes the reference to the function where the sum is calculated. You may go through the topic below. Output: Enter the first number: 15.5Enter the Second number: 20.5Sum of the result: 36.000000 This is a simple C program that demonstrates the use

January 6, 2024Read more →