Answer:
He relocated from Mecca to the city of Medina.
Explanation:
Answer:
#include <bits/stdc++.h>
using namespace std;
int main() {
string in;//string in for taking input...
cout<<"Do you want to continue ?"<<endl;
getline(cin,in);//taking input from the user...
if(in=="y"||in=="Y"||in=="yes"||in=="OK"||in=="Why not?")//conditions..
cout<<"OK"<<endl;
else if(in=="No")
cout<<"terminating"<<endl;
else
cout<<"Bad input"<<endl;
return 0;
}
Explanation:
I have taken a string in.
Then taking input from user.
Checking the conditions using if else if ladder.
Answer:
CPU clock cycles = Instruction count x CPI.
CPU execution time =
= CPU clock cycles x Clock cycle.
= Instruction count x CPI x Clock cycle.
T =
I.
x CPI x C
Explanation:
i'm guessing