Untitled
plain_text
a month ago
624 B
0
Indexable
Never
#include <bits/stdc++.h> #include <ctime> #include <cstdlib> #include<cmath> using namespace std; int main() { int a, b, c, randomnumber; srand(time(0)); cin >> a >> b >> c; randomnumber = 1+ (rand() % 5) ; cout << "RandomNumber: " <<randomnumber<< endl; cout << "Optimal Value Meemaseed : " << floor(0.1*a + 0.9*c + randomnumber) << endl ; cout << "Model Value Meemaseed : " << floor(0.1*a + 0.9*c) << endl; cout << "Optimal Value Vussanut : "<< floor(0.15 * a + 0.55 * b - 0.3 * c + randomnumber)<< endl; cout << "Model Value Vussanut : "<< floor(0.15 * a + 0.55 * b - 0.3 *c ); }