MeshWorld India LogoMeshWorld.
ProgramC1 min read

Print Upside Down Triangle Pattern in C

Listen to ArticleAI Speech
~1 min read narration
100%
Print Upside Down Triangle Pattern in C

A pattern program in C - language

Working example

/**
 *  5       5       5       5       5
 *      20      20      20      20
 *          60      60     60
 *              120     120
 *                  120
 */
#include <stdio.h>
int main()
{
    int start, end = 1, i, j, n, result;
    printf(" Enter starting value: ");
    scanf("%d", &start);
    result *= start;
    for (i = start; i >= end; i -= 1)
    {
        for (j = start; j > i; j -= 1)
        {
            printf("\t");
        }

        for (j = i; j >= end; j -= 1)
        {
            printf("\t %d \t", result);
        }
        result *= (i - 1);
        printf("\n");
    }
    printf("\n");
    return 0;
}
Reader Quality Feedback

Did this technical guide help solve your problem?

Suggest Errata ($0)
Vishnu
Primary Author

Vishnu

Founder & Principal Architect at MeshWorld. Senior engineer and instructor specializing in AI agent systems, scalable web architecture, and modern development workflows.

Explore Author Archive
Compute Fuel & Open Testbed
100% Independent & Verified

Fuel High-Density, Zero-Fluff Engineering Deep-Dives

Every guide on MeshWorld is validated on physical Linux nodes and reproducible testbeds. If this article saved you hours of debugging or unblocked production, consider funding our next cluster run.

Weekly Dispatch

Join MeshWorld Dispatch

Get practical tutorials, system blueprints, and curated AI engineering notes straight to your inbox. No fluff, zero spam.

Zero spam. 1-click unsubscribe anytime.Prefer RSS?
Curated Continuations

Up Next in This Domain.

Browse Full Archive