blog visitors

Star Pattern

Star Pattern program

C language

 Program Contents:

#include <stdio.h>
#include <conio.h>

int main(void) {
int i, j, t;
printf(" \n");
printf("  --PATTERN STARS--\n");
printf(" \n");
printf("Height: ");// input the numbers
scanf("%d", &t);// output

//Structure for nesting as the formula of the laying of the stars

for(i = 1; i <= t; i++) {
for(j = 1; j <= t; j++) {
printf(" * ");

Output Results

0 komentar:

Posting Komentar

Terimakasih Atas Komentarnya semoga berguna demi blog ini