#include<stdio.h>
int main()

{
int n,i,j;
printf(“nhap n : “);
scanf(“%d”,&n);
printf(“\n\n”);
for(i=0;i<n;i++)
{
for(j=0;j<n-i;j++) printf(” “);
for(j=0;j<i+1;j++) printf(“* “);
printf(“\n”);
}
}

 

*

* *

* * *

* * * *

* * * * *

http://seotukhoagoogle.com/wp-content/uploads/2017/04/images.jpeghttp://seotukhoagoogle.com/wp-content/uploads/2017/04/images.jpegSeotukhoaGoogleCode C, C++#include<stdio.h> int main() { int n,i,j; printf('nhap n : '); scanf('%d',&n); printf('\n\n'); for(i=0;i<n;i++) { for(j=0;j<n-i;j++) printf(' '); for(j=0;j<i+1;j++) printf('* '); printf('\n'); } }   * * * * * * * * * * * * * * *