Starter Tutorials 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.
Home » Programming » Page 20

C program to find the largest of three numbers using ternary operator

Suryateja Pericherla Categories: Others. No Comments on C program to find the largest of three numbers using ternary operator

In this article we will learn to implement a C program to find the largest of three numbers using ternary operator. A C program is provided below to read three numbers and print the biggest or largest of these numbers.   Program is as follows: //C program to find the largest of three numbers using […]

Read the rest of this entry »

C program to calculate the area of a triangle

Suryateja Pericherla Categories: Others. No Comments on C program to calculate the area of a triangle

In this article we will learn to implement a C program to calculate the area of a triangle. A C program is provided below to read the three sides of triangle and display the area of the triangle as output. //C program to calculate the area of a triangle //Formula: area = (s(s-a)(s-b)(s-c))1/2, where s=(a+b+c)/2. […]

Read the rest of this entry »

Java Programs for Interviews

Suryateja Pericherla Categories: Programming. No Comments on Java Programs for Interviews

Here is a compilation of most frequently asked Java programs for interviews. These programs are generally asked in technical rounds or coding rounds.   You are more than welcome to suggest other solutions for the below listed Java programs. To suggest a solution, click the Java program link and write your program / solution as […]

Read the rest of this entry »

C program to print all values in an array less than given number

Suryateja Pericherla Categories: Arrays. No Comments on C program to print all values in an array less than given number

In this article we will learn to implement a C program to print all values in an array less than given number. A C program is provided below to print all the values in an array which are less than the given key element.   The program is as follows: #include <stdio.h> #include <conio.h> int […]

Read the rest of this entry »

C program to check balanced parentheses

Suryateja Pericherla Categories: Arrays. No Comments on C program to check balanced parentheses

In this article we will learn to implement a C program to check balanced parentheses. A C program is provided below to match parentheses in a giving string.   The logic used is to maintain counts for each occurrence of ‘(‘ and ‘)’. If the difference between these counts is zero, then we can say […]

Read the rest of this entry »

C program to multiply consecutive numbers in an array

Suryateja Pericherla Categories: Arrays. No Comments on C program to multiply consecutive numbers in an array

In this article we will try to implement a C program to multiply consecutive numbers in an array. A C program is provided below to find the product of consecutive numbers in a given array.   For example if the given array is: 1 2 5 4 1 2, then the output should be 1*2*1*2, […]

Read the rest of this entry »

C program to find number of duplicate elements in an array

Suryateja Pericherla Categories: Arrays. No Comments on C program to find number of duplicate elements in an array

In this article we will learn to implement a C program to find number of duplicate elements in an array. A C program is provided below which reads a list of number and prints the number of duplicates in a given array.   Note: This program only works if the numbers are repeated for 2 […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory