How to Draw V Letter Shape Using Asterisk(*) in C++ -


i newbie in c++. want draw character v in c++

i did this. don't know how further required result.

#include <iostream.h> using namespace std; int main() { int i, j; for() {     for()     {       if(i == j)       {         cout << "*";       }       else       {         cout << " ";       } } cout<< endl; return 0; } 

int main() {   std::cout << "*      *\n"                " *    *\n"                "  *  *\n"                "   **\n" } 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -