Category Archives: C Language

Print star pattern triangle upside down

Print star pattern triangle is a C program to display the following out put star pattern. It is upside down triangle of stars made by c program. It is upside down triangle c program. /* Write a C program to print star pattern triangle as shown below. ***** **** *** ** * */ #include<stdio.h> int main()… Read More »

Loading

Star pattern Right Angle Triangle

Star pattern Right Angle Triangle is a C program to display right angle triangle of stars using nested for loop. /* Write a C program to print star pattern triangle as shown below * ** *** **** ***** */ #include<stdio.h> int main() { int row, col, space=4, s; for( row = 1; row <= 5;row++)… Read More »

Loading

Print Star Pattern Left Inverted Triangle

“Print Star Pattern Left Inverted Triangle” is a C program using nested for loop. It displays a triangle of star pattern. /*Write a C Program to print the following Star Pattern ***** **** *** ** * */ #include <stdio.h> int main() { int row, col; for(row=5;row>=1;row–) { for(col=1;col<=row;col++) { printf(“*”); } printf(“\n”); } return 0;… Read More »

Loading

Print Star Pattern Triangle using loop

Print Star Pattern Triangle using loop is a C program. It prints a right angle triangle of stars as following: * ** *** ***** ****** /*Write a C Program to print the following Star Pattern * ** *** **** ***** */ #include <stdio.h> int main() { int row, col; for(row=1;row<=5;row++) { for(col=1;col<=row;col++) { printf(“*”); }… Read More »

Loading

Fahrenheit to Celsius Conversion C Program

This is a C language program for Fahrenheit to Celsius Conversion. It converts Fahrenheit to Celsius using formula:Celsius = (Fahrenheit – 32) * 5.0 /9.0 /*Write a C program to Convert Fahrenheit into Celsius*/#include <stdio.h> int main() { float fahren, celsius; printf(“Enter temperature in Fahrenheit=”); scanf(“%f”, &fahren); celsius = (fahren-32)*5.0 / 9.0; printf(“%.2f Fahrenheit is… Read More »

Loading