![]() |
|
#1
|
|||
|
|||
|
Kod:
#include <stdio.h>
#include <conio.h>
void main(){
int i,j,k;
int num,temp;
char ch;
printf(" ***** FOR FUN *****\n");
printf("Please enter row number : ");
scanf("%d",&num);
printf("\
\
");
temp=num;
for(i=0;i<num;i++){
printf("*");
for(j=0;j<(temp-1);j++){
printf("*");
}
printf("\n\
");
temp-=1;
j=0;
}
ch=getche();
}
for example you entered 6 as the number of row or column: THE OUTPUT WILL BE: ****** ***** **** *** ** * |
![]() |
| Seçenekler | |
| Stil | |
|
|