Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

please write the full code for printing asterics in pyramid form in mat lab 7.0

OpenStudy (alfie):

I am no expert of matlab, nevertheless, you can do that with a simple for cycle. This is in c++: #include <iostream> using namespace std; int main(){ for(int i = 0; i<10; i++){ std::string foo = std::string(i, '*'); cout << foo << endl; } system("PAUSE"); }

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!