Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int rowInput;
- int coln, row;
- printf("Enter the number of rows: ");
- scanf("%d", &rowInput);
- for(row=0; row<rowInput; row++) // นับจำนวน Row
- {
- for(coln=rowInput-row; coln<rowInput; coln++)
- {
- printf(" ");
- }
- for(coln=row; coln<rowInput; coln++)
- {
- printf("*");
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement