Pizza. . . . . . . . . . .
Answer:
Swapping two numbers means exchange the values of two variables with each other.
The program is correct: at the beginning, product = 0. Then, we start summing Y to that variable, and we sum Y exactly X times, because with each iteration we increase Count by 1, and check if Count=X so that we can exit the loop.
Answer:
#include <iostream>
using namespace std;
double DrivingCost(int drivenMiles,double milesPerGallon,double dollarsPerGallon)
{
double dollarsperMile=dollarsPerGallon/milesPerGallon;//calculating dollarsperMile.
return dollarsperMile*drivenMiles;//returning thr driving cost..
}
int main() {
double ans;
int miles;
cout<<"Enter miles"<<endl;
cin>>miles;
ans=DrivingCost(miles,20.0,3.1599);
cout<<ans<<endl;
return 0;
}
Output:-
Enter miles
10
1.57995
Enter miles
50
7.89975
Enter miles
100
15.7995
Explanation:
In the function first I have calculated the dollars per mile and after that I have returned the product of dollarspermile and driven miles.This will give the cost of the Driving.
A sample HTML code that contains headers, paragraph tags, hyperlinks is
- <h1> This is a header </h1>
- <h2> This is a subtitle heading </h2>
- <p> This is a paragraph </p>
- <a href=”www.brainly.com”> Brainly Website </a>
<h3>What is HTML?</h3>
This is the building block of a website and is an acronym that means Hypertext Markup Language.
The HTML code that can be used to add a sample image is: "<img src="pic_Brainly.jpeg" alt="Brainly" width="500" height="333">
The src code means the specific location of the external resource
The width and height show how tall and wide the image would be.
The alt shows the alternative information for the image that can be seen when a person hovers over the image on the website.
Read more about HTML and CSS here:
brainly.com/question/24051672
#SPJ1