Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //លំហាត់ទី 2
- #include<stdio.h>
- int main(){
- int row=5;
- int high=1;
- int row1=5;
- int high1=5;
- for(int i=0;i<row;i++){
- for(int j=0;j<high;j++){
- printf("*");
- }
- printf("\n");
- high++;
- }
- for(int i=0;i<row1;i++){
- for(int j=0;j<high1;j++){
- printf("*");
- }
- printf("\n");
- high1--;
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement