Answer:
mark = int(input("Enter mark: "))
if (mark >= 30):
print("Pass")
else:
print("Not pass")
Please comment what device you’re using and maybe i can help :)
I believe it’s the first one.
Answer:
2048 MB / 2 GB.
Explanation:
Without removing the other modules you can add two more 512 MB modules for a total of 2048 MB.
Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
string fname,lname; int num;
cout<<"Firstname: "; cin>>fname;
cout<<"Lastname: "; cin>>lname;
cout<<"4 digits: "; cin>>num;
string login = lname;
if(lname.length()>=5){
login = lname.substr(0, 5); }
login+=fname.substr(0,1)+to_string(num%100);
cout<<login;
return 0;
}
Explanation:
See attachment for explanation where I used comments to explain each line