Search
 
SCRIPT & CODE EXAMPLE
 

C

number pattern in c

/**
 * C program to print number pattern
 */

#include <stdio.h>

int main()
{
    int i, j, N;

    printf("Enter N: ");
    scanf("%d", &N);

    for(i=N; i>=1; i--)
    {
        for(j=1; j<=i; j++)
        {
            printf("%d", i);
        }

        printf("
");
    }

    return 0;

}
Comment

PREVIOUS NEXT
Code Example
C :: converting strings to numbers in c 
C :: bubble sort c 
C :: qtableview get selected row 
C :: print float number completely in C language 
C :: c break statement 
C :: Leap year using function in c 
C :: print an int c 
C :: FCFS algorithm in c to find average turnaround time and waiting time 
C :: Float and Double Input/Output 
C :: pyinstaller hidden import tensorflow not found 
C :: sizeof file c 
C :: wifi access point in esp8266 
C :: print in c 
C :: binary sorting 
C :: c comment 
C :: hash function in c 
C :: c programming programiz 
C :: C How to define a union? 
C :: localStorage.setItem multpile arra 
C :: c to assembly converter 
C :: C++ How to use enums for flags? 
C :: remove language from jupyter notebook 
C :: winautomation block input not working 
C :: C Program to Maintain an Inventory of items in Online Store 
C :: ssl_get_servername return null 
C :: float para numeros aleatorios em c 
C :: C Why enums are used? 
C :: allocate a array on strings in c 
C :: os.listdir to array 
C :: difference between %f and %lf 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =