Cây thông dấu sao

View as PDF

Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem types
Allowed languages
C, C#, C++, Go, Java, Kotlin, OCaml, PHP, Pypy, Pypy 3, Python, Ruby, Rust, Scratch, Swift

Dùng lệnh print để in ra hình vẽ sau

     *
    ***
   *****
  *******
 *********
***********
     *
     *
     *

View comments (4)

Comments


  • -2
    haicode  commented on 12:59 a.m. 26 aug, 2022

    không thích đơn giản đou

    include

    using namespace std; int main(){ for(int i=1;i<=6;i++){ for(int j=1;j<=6-i;j++) cout<<" "; for(int j=1;j<=2i-1;j++) cout<<""; cout<<endl; } for(int i=1;i<=3;i++) cout<<" *"<<endl; int im; cin>>im; return 0; }


  • -2
    Cương_2011  commented on 11:03 a.m. 19 jul, 2022

    print (""" **





     *
     *
     *""")

  • -13
    tkminhbuihuunhat  commented on 6:10 p.m. 27 jun, 2021

    This comment is hidden due to too much negative feedback. Click here to view it.


    • -2
      Cương_2011  commented on 11:02 a.m. 19 jul, 2022

      print (""" **





       *
       *
       *""")