C program to print a string without using semicolon in the printf

In this tutorial, we will learn how to print a string using printf and without using a semicolon. We will show you different approaches below :.

Read

C program to print a right angled triangle using numbers

In this C programming tutorial, we will learn how to create a right angled triangle using numbers. Like below :.

Read

C program to print or format a number to words

In this C programming tutorial, we will learn how to format a number to words. The user will enter one number and our program will convert it to words. For example, if the user will enter 987, it will print Nine Eight Seven as output.

Read

C program to print a square table of a number using pow()

In this tutorial, we will learn how to print one square table using pow() function. The user will enter one number and the program will print the square table for that number. Before explaining the program, let me explain to you how pow() works :.

Read

C program to print from 1 to N using recursive main function

In this tutorial, we will learn how to print 1 to N using recursive main method.Recursive main means, our program will call the main() method recursively. Let's take a look at the program :.

Read

C program to reverse a user input integer array

In this tutorial, we will learn how to reverse all values of an integer array using C programming language. For example, the array [1,2,3,4,5] will become [5,4,3,2,1] after reversed. The array elements will be entered by the user. We will store them in an array and reverse the array. The algorithm that is going to be used in the program is as below :.

Read

C program to sort characters of a string as per their ASCII values

This program will show you how to sort the characters of a string as per their ASCII values. It will take one string as input from the user and sort the characters of that string in ascending ASCII values of the characters.

Read

C program to remove all characters from a string keeping all numbers

C example program to remove all characters from an alphanumeric string keeping the numbers. The example will show you how to take the string as an input from the user.

Read

C program to find the sum of first n odd numbers starting from 1

In this tutorial, we will learn how to find the total sum of first ’n’ odd numbers using a C program. For example , the sum of first 3 odd numbers is 1 + 3 + 5 = 9. The user will enter the value of n and our program will find out the sum and print out the answer. We will discuss two different ways to find out the sum.

Read

C program to swap two numbers using bitwise XOR operation

In this tutorial, we will learn how to swap two numbers in C using bitwise XOR operation. Let’s take a look at the program :.

Read