Home
О нас
Products
Services
Регистрация
Войти
Поиск
ValeraDavay
@ValeraDavay
July 2022
1
13
Report
Помогите с задачей по C++
Во вложении!
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
Answers & Comments
kristinabagrova
#include<iostream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
using namespace std;
int main(){
int a[5], b[5];
srand ((unsigned int)time(NULL));
for (int i = 0; i < 5; i++){
a[i] = rand()%6;
cout <<"a[" << i << "]=" << a[i] << " ";}
cout << endl;
for (int i = 0; i < 5; i++){
b[i] = rand()%6;
cout <<"b[" << i << "]=" << b[i] << " ";}
return 0;
}
2 votes
Thanks 0
×
Report "Помогите с задачей по C++ Во вложении!..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
О нас
Политика конфиденциальности
Правила и условия
Copyright
Контакты
Helpful Social
Get monthly updates
Submit
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
using namespace std;
int main(){
int a[5], b[5];
srand ((unsigned int)time(NULL));
for (int i = 0; i < 5; i++){
a[i] = rand()%6;
cout <<"a[" << i << "]=" << a[i] << " ";}
cout << endl;
for (int i = 0; i < 5; i++){
b[i] = rand()%6;
cout <<"b[" << i << "]=" << b[i] << " ";}
return 0;
}