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.
Home » Programming » C Programming » Programs » Others » Page 2

C program to swap two numbers without using a temporary variable

Suryateja Pericherla 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 »

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 »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory