In ra hình vẽ sau:
Output
********** ********** **********
using namespace std; int main() { cout <<"**"<<endl; cout <<"**"<<endl; cout <<"****"<<endl; return 0; }
Code python 3 tốt nhất
print("""********** ********** ********** """)
print('**') print('**') print('****')
#include<bits/stdc++.h> using namespace std; int main() { std::cout << "**********" << std::endl; std::cout << "**********" << std::endl; std::cout << "**********" << std::endl; }
print('**********') print('**********') print('**********')
#include<stdio.h> int main () { printf ("**********") ; printf ("\n"); printf ("**********") ; printf ("\n"); printf ("**********") ; printf ("\n"); }
python 1 đấm ăn luôn
for i in range(3): print('****')
code dễ: print('**') print('**') print('**') code PHỨC TẠP: for i in range(3): print('**')
scratch buồn
print("**") print("**") print("****")
print('********') print('********') print('********')
Comments
#include <bits/stdc++.h>
using namespace std;
int main() {
cout <<"**"<<endl;
cout <<"**"<<endl;
cout <<"****"<<endl;
return 0;
}
Code python 3 tốt nhất
print('**')
print('**')
print('****')
Code C++ tham khảo
Code Python tham khảo
Code Clang++ tham khảo
python 1 đấm ăn luôn
for i in range(3):
print('****')
code dễ:
print('**')
print('**')
print('**')
code PHỨC TẠP:
for i in range(3):
print('**')
scratch buồn
print("**")
print("**")
print("****")
print('********')
print('********')
print('********')
5 more comments