Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main() {
- // for (var line = "#"; line.length > 8; line +="#") console.log (line)
- int a;
- cout << "Введите число: " << endl;
- cin >> a;
- char buf[a];
- for(int i = 0; i < a; i++)
- {
- buf[i] = '*';
- cout << buf << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement