I want to get the out put like this .. if I input no 4 then for stars in a row and 4 colmns..
****
****
****
****
if i input 10 then 10 stars 10 colomns
I wrote the coding
butr this outputs like .. if I input 4 then the output comes asCode:#include "stdafx.h" #include <iostream> #include<limits> using namespace std; void main() { int x; cin >> x; for(int i=1;i<=x;i++) { for(int g=1;g<=x;g++) { cout<<"*"<<endl; } } system("pause"); }
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
how do I get this output??? whats wrong in my coding O.o
****
****
****
****



LinkBack URL
About LinkBacks





perator <<(std::basic_ostream<char,_Traits> &,unsigned char)' : could not deduce template argument for 'std::basic_ostream<char,_Traits> &' from 'std::istream'