0
C++
To play the desired video game you need to be sure that the RAM volume of your PC is high enough. Take an input from the user which represents the current RAM volume and if it is lower than 16 GB print “PC upgrade needed”. Sample Input 4 Sample Output PC upgrade needed My attempt in comments
5 odpowiedzi
0
#include <iostream>
using namespace std;
int main()
{
int ram;
cin >> ram;
if (ram < 16) {
cout << "PC upgrade needed";
}
return 0;
}
0
int main() {
int ram = 2;
cin >> ram;
// your code goes here
if (ram<16) {
cout << "PC upgrade needed";
}
return 0;
}
0
#include <iostream>
int main() {
int ram;
std::cin >> ram;
// your code goes here
if (ram < 16){
std::cout << "PC upgrade needed";
}
return 0;
}
// FZ
0
#include <iostream>
using namespace std;
int main()
{
int ram;
cin >> ram;
if (ram < 16) {
cout << "PC upgrade needed";
}
return 0;
}
Good Luck
- 1
#include <iostream>
using namespace std;
int main() {
int ram;
cin >> ram;
if (4>ram) {
cout << "PC upgrade needed";
}
return 0;
}