Ответ:
голосов
#include
using namespace std;
void print(int number){
for(int i=0;icout<<"*";<br>}
void main(){
int n;
cout<<"Input number of stars: ";cin>>n;
cout<<"Result:"<<endl;<br>print(n);
cout<<endl;<br>system("pause");
}
#include <iostream>
void F(int quantity) {
for (int i = 0; i < quantity; i++)
std::cout << "*";
signed main() {
int x;
std::cin >> x;
F(x);
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
голосов
#include
using namespace std;
void print(int number){
for(int i=0;icout<<"*";<br>}
void main(){
int n;
cout<<"Input number of stars: ";cin>>n;
cout<<"Result:"<<endl;<br>print(n);
cout<<endl;<br>system("pause");
}
#include <iostream>
void F(int quantity) {
for (int i = 0; i < quantity; i++)
std::cout << "*";
}
signed main() {
int x;
std::cin >> x;
F(x);
return 0;
}