Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
1
#include <iostream> #include <iomanip> using namespace std; int main() { int a = 0; for (int i = 0; i < 10; i++) { cout << i; for (int j = 0; j < 10; j++) { a = j + i * 10; if (a <= 10 ) { cout << setw(8) << a; } else { cout << setw(8) << a * a; } } cout << endl; } cout << "\n\n"; return 0; }
run
|
edit
|
history
|
help
0
VS struct name enumerate
Two-phase sample with Visual C++ 2015
Compile time creation of class member stl container (const std::array) filled with elements.
Hello World
multiplie linked list numbers
visual-wtf
Wide string conversion with multibyte chars and locale
assignment
hangman
hangman