Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // re.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- void funkcia01 (int a[13], int i)
- {
- for(i = 0; i < 13; i++)
- {
- srand((unsigned int)time(NULL));
- for(i = 0; i < 13; i++)
- {
- a[i] = rand()% 100;
- }
- }
- cout << "Vypis za sebou: " << endl;
- for (i = 0; i < 13; i++)
- {
- cout << a[i] << " ";
- }
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- int a[13];
- int i = 0;
- cout << "13 nahodne zadanych cisel vypisanych v riadku oddelene medzerou *funkcia01*: " << endl;
- funkcia01(a, i);
- system("Pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement