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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -