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
Post a Comment