Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача 2,9.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int n, i, s;
- int main()
- {
- setlocale(LC_ALL, "russian");
- i = 1;
- s = 0;
- cin >> n;
- while (i <= n)
- {
- s = 0;
- while (s < i)
- {
- cout << "^-^ ";
- s++;
- }
- cout << endl;
- i++;
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment