Answer:
#include<iostream>
using namespace std;
int main (){
int n1, n2;
cout<<"Enter 1st number";
cin>>n1;
cout<<"Enter 2nd number";
cin>>n2;
if(n1<n2){
cout<<"The 1st number is the smallest"<<endl<<" is= "<<n1;
}
else{
cout<<"The 2nd number is the smallest"<<endl<<" is= "<<n2;
}
}
return 0;
<h3>Answer(:</h3>
•concatenation
• scanning
• substringing
• translation
• verification
<h3>if you want to remember means csstv;-)</h3>
Answer:
Attached excel file containing formula for monthly cost of gas.
Explanation:
To find mileage note down readings at the star of month and at end of month.
Subtract end of month reading from start this will give you number of miles in month. Now as per mentioned in question, divide number of miles by average mpg and multiply by the price of a gallon of gas.
Here is your monthly cost of gas.
Answer:
Probability of getting 3 consecutive tails in a fair coin toss:-
P(E)=0.125
Explanation:
If we toss an unbiased coin exactly three time we can have 8 outputs possible and those outputs are as following:-
- HHH
- HHT
- HTH
- HTT
- THH
- THT
- TTH
- TTT
Out of these 8 outputs we have 1 favorable outcome that is TTT.So the probability of the event is P(E)=1/8
where 8 is total number of outcomes.