Loading...
More Plaintext Posts
gggg
# This is the network config written by 'subiquity'network:ethernets:enp0s3:dhcp4: yesnameservers:addresses: [8.8.8.8,8.8.4.4]version: 2
##README: Rename file to "data" (no extension) and delete this line4 4.555 5.706 6.807 7.958 9.109 10.2010 11.3511 12.5012 13.6013 14.7514 15.9015 1716 18.1517 19.3018 20.4019 21.5520 22.7021 23.8022 24.9523 26.1024 27.2525 27.8026 28.9527 30.1028 31.2029 32.3530 33.5035 39.1540 44.8045 50.5050 55.6060 6770 78.3075 83.4580 89.1090 100.45100 111.25125 139150 166.85200 222.50
#!/bin/bashyum -y install httpdsystemctl enable httpdsystemctl start httpdhostname > /var/www/html/index.html
test
#include <iostream>#include <vector>#include <algorithm>#include <cstdlib>#include <ctime>using namespace std;// Function to generate random numbersvector<int> generateRandomNumbers(int count, int minValue, int maxValue) {vector<int> numbers;for (int i = 0; i < count; ++i) {numbers.push_back(rand() % (maxValue - minValue + 1) + minValue);}return numbers;}// Function to print a vector of integersvoid printVector(const vector<int>& vec) {for (int num : vec) {cout << num << " ";}cout << endl;}// Function to sort and display numbersvoid sortAndDisplayNumbers(vector<int>& numbers) {sort(numbers.begin(), numbers.end());cout << "Sorted numbers: ";printVector(numbers);}int main() {// Seed the random number generatorsrand(static_cast<unsigned int>(time(0)));int count, minValue, maxValue;cout << "Enter the number of random numbers to generate: ";cin >> count;cout << "Enter the minimum value: ";cin >> minValue;cout << "Enter the maximum value: ";cin >> maxValue;// Generate random numbersvector<int> numbers = generateRandomNumbers(count, minValue, maxValue);// Display unsorted numberscout << "Unsorted numbers: ";printVector(numbers);// Sort and display sorted numberssortAndDisplayNumbers(numbers);return 0;}