Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

C program to interchange the largest and smallest elements in the array

Categories: Arrays. No Comments on C program to interchange the largest and smallest elements in the array

In this article we will learn to implement a C program to interchange the largest and smallest elements in the array. A C program is provided below that reads a list of numbers and swap the largest and smallest element in the array.   Program is as follows: //C program to interchange the largest and […]

Read the rest of this entry »

C program to check whether the given number is armstrong or not

Categories: Others. No Comments on C program to check whether the given number is armstrong or not

In this article we will learn to implement a C program to check whether the given number is Armstrong or not. A C program is provided below that reads a number and prints whether it is a Armstrong number or not.   //C program to check whether the given number is an Armstrong number or […]

Read the rest of this entry »

C program to convert decimal to binary number

Categories: Arrays. No Comments on C program to convert decimal to binary number

In this article we will learn to implement a C program to convert decimal to binary number. A C program is provided below to read a decimal number and print its equivalent binary number.   Program is as follows: //C program to display the binary equivalent of a given decimal number #include<stdio.h> #include<conio.h> void main() […]

Read the rest of this entry »

C program to print the multiplication table of a given number

Categories: Others. No Comments on C program to print the multiplication table of a given number

In this article we will learn to implement a C program to print the multiplication table of a given number. A C program is provided below to read a number and print its multiplication table.   Program is as follows: //C program to print the multiplication table of a number n #include<stdio.h> #include<conio.h> void main() […]

Read the rest of this entry »

C program to generate the first n terms of Fibonacci sequence

Categories: Others. No Comments on C program to generate the first n terms of Fibonacci sequence

In this article we will learn to implement a C program to generate the first n terms of Fibonacci sequence. A C program is provided below which reads a number and prints the Fibonacci sequence up to n.   Program is as follows: //C program to generate the first n terms of a Fibonacci sequence […]

Read the rest of this entry »

C program to find the sum of individual digits of a positive integer

Categories: Others. No Comments on C program to find the sum of individual digits of a positive integer

In this article we will learn to implement a C program to find the sum of individual digits of a positive integer. A C program is provided below which reads a number and gives the sum of digits and reverse of that number.   Program is as follows: //C program to find the sum of […]

Read the rest of this entry »

C program which takes two integer operands and one operator

Categories: Others. 2 Comments on C program which takes two integer operands and one operator

In this article we will learn to implement a C program which takes two integer operands and one operator and then performs the operation and prints back the result.   Program is as follows: //C program which takes two integer operands and one operator from the user, performs the operation and then prints the result […]

Read the rest of this entry »

C program to find the roots of a quadratic equation

Categories: Others. No Comments on C program to find the roots of a quadratic equation

In this article we will learn to implement a C program to find the roots of a quadratic equation. A C program is provided below for calculating the roots of a quadratic equation ax^2+bx+c=0   Program is a follows: //C program to find the roots of a quadratic equation. Ex: ax^2+bx+c=0 #include<stdio.h> #include<conio.h> #include<math.h> void […]

Read the rest of this entry »

C program to find 2’s complement of a binary number

Categories: Arrays. No Comments on C program to find 2’s complement of a binary number

In this article we will learn to implement a C program to find 2’s complement of a binary number. A C program is provided below which reads a binary number and prints its 2’s complement.   Program is as follows: //C program to find the 2's complement of a given binary number #include<stdio.h> #include<conio.h> void […]

Read the rest of this entry »

C program to swap two numbers without using a temporary variable

Categories: Others. No Comments on C program to swap two numbers without using a temporary variable

In this article we will learn to implement a C program to swap two numbers without using a temporary variable. A C program is provided below which reads two numbers and interchanges them with using a temporary variable.   Program is as follows: //C program to swap two numbers without using a temporary variable #include<stdio.h> […]

Read the rest of this entry »