Answer:
Print Media
Broadcast Media
Explanation:
Please help I upped the points and please don't answer if you don't have the answer..
3. Describe two of your long-term financial goals, and explain why these goals are important to you. List three steps that might help you accomplish this goal. (4-6 sentences. 2.0 points)
4. Describe and example of common financial resource, and example, and a debt. These can be examples from your own life or from other people you know or can imagine. (3-6 sentences. 3.0 points)
Answer:
3. Paying for my daughter to attend college and building a life outside of struggle. These goals must be accomplished by me finishing school, going onto college and maybe even starting my own business. I must set an appropriate example for my daughter to learn from someone who she believes in. Starting a family business to pass down to generations will be an excellent way to start financially planning now ahead of time.
4. Living in a family of mines, common financial resource is either government assisted or public security.An expense that I cannot escape now is the caring for of my daughter which will vary as she get older. Lastly a debt would be the over spending of credit cards with no money to pay it back as the interest rates climb.
Explanation:
Sue conducted an experiment to determine which paper towel is the most absorbent among three different brands. She decides to present her data using a chart.
Why would Sue want to present her data using a chart?
to analyze alphanumeric data in a table
to analyze alphanumeric values in a spreadsheet
to present numeric values in a visually meaningful format
to present numeric values in a meaningful spreadsheet format
Answer:
c
Explanation:
Harry is creating a PowerPoint presentation and wants all the slides to have a uniform look.
The first thing Harry should do is select the
.
Next, he should use the command groups to edit the
.
Finally, he should save the file as a new
.
Answer: all answers for test are
Slide Master View
Layout and Theme
PowerPoint Template
A.
C.
Slide Master Thumbnail, Insert Tab, Header &Footer, Slide tab in the dialog box.
D.
C.
D.
Explanation:
The first thing Harry should do is select the Slide Master View, Next, he should use the command groups to edit the Layout and Theme. Finally, he should save the file as a new PowerPoint Template.
What is PowerPoint?It is a presentation-based programme that employs graphics, movies, etc. to enhance the interactivity and appeal of a presentation.
A saved Powerpoint presentation has the ".ppt" file extension. PPT is another name for a PowerPoint presentation that includes slides and other elements.
This right-sided brain activity is perfectly suited to the principal function of PowerPoint presentations.
For his PowerPoint presentation, Harry wants each slide to have a consistent appearance.
Harry must first choose the Slide Master View before using the command groups to change the Layout and Theme. The file should then be saved as a fresh PowerPoint Template.
Thus, this way, Harry can create a uniform look.
For more details regarding PowerPoint, visit:
https://brainly.com/question/14498361
#SPJ2
In this lab you are asked to declare two variables of type integer: userNum and x. The user should input should be stored using scanf statements. Then you are asked to divide the value for userNum by x three times(three different operations). Each time you do the division, assign the value to userNum overwriting the previous value and print it out using a print statement. Do this three times. In this case there is only one new line print statement at the end.
#include
int main(void) {
int x;
int userNum;
scanf("%d %d" , &userNum, &x);
userNum = (double)userNum / x;
printf("%d " , userNum);
userNum = (double)userNum / x;
printf("%d " , userNum);
userNum = (double)userNum / (double)x;
printf("%lf\n" , (double)userNum);
return 0;
}
my input is 100 2
my output is 50 25 12.000
8 months ago
Answer:
See Explanation
Explanation:
Your program is correct and it follows the correct sequence; however, the reason you keep getting integer result is because the question requires that you declare both variables as integer.
The only modification required in your program is to change change #include to #include <stdio.h> for the program to be free of error.
Write your code to define and use two functions. The Get User Values function reads in num Values integers from the input and assigns to user Values. The Output Ints Less Than Or Equal To Threshold function outputs all integers in user Values that are less than or equal to maxVal. num Values indicates the number of integers in user Values. void Get User Values(int user Values[], int num Values) void Output Ints Less Than Or Equal To Threshold (int user Values[], int maxVal, int num Values)
Answer:
#include <iostream>
#include <vector>
using namespace std;
/* Define your function here */
vector<int> GetUserValues(vector<int>& userValues, int numValues) {
int tmp = 0;
vector<int> newVec;
for(int i = 0; i < numValues; i++) {
cin >> tmp;
newVec.push_back(tmp);
}
return newVec;
}
void OutputIntsLessThanOrEqualToThreshold(vector<int> userValues, int upperThreshold) {
for (int i = 0; i < userValues.size(); ++i) {
if(userValues.at(i) < upperThreshold) {
cout << userValues.at(i) << " ";
}
}
cout << endl;
}
int main() {
vector<int> userValues;
int upperThreshold;
int numValues;
cin >> numValues;
userValues = GetUserValues(userValues, numValues);
cin >> upperThreshold;
OutputIntsLessThanOrEqualToThreshold(userValues, upperThreshold);
return 0;
}
Explanation:
Perhaps their is a better way to code this, but I couldn't figure out what to do with the pointer in the first function.
In the insert table of figures dialog box which drop down menu do you use to choose what information is displayed in the table
Answer:
caption label
Explanation:
Donna wants to save personal files on her computer. Which characteristic of the computer is must useful for her
Answer:
D. Storage
Explanation:
When Donna wants to save personal files on her computer, the storage characteristic of the computer would be most useful to her. This feature of the computer allows files to be stored in several forms. The computer has the primary and secondary storage.
The primary storage includes assets such as the Random Access Memory while the secondary storage includes assets like the SD card, DVD, etc. Storage is important as it makes files easily retrievable when needed.
The storage characteristic of the computer is most useful to her in this scenario.
The Storage components in a computer helps to stores and facilitate easy retrieval of various type of data on the system.
The primary storage includes component of the Random Access Memory while the secondary storage includes SD card, Flash drives, External CD-rome, etc.
Therefore, she can save her personal files on her internal or external storage so as to facilitate easy retrieval at the time of future use.
Learn more about this here
brainly.com/question/272186
Kim wants to add a new tab on the ribbon named “Paste as Pictures” for a group of special commands. Put the steps in the correct order to explain how she can accomplish this task.
Step 1: Go to the Backstage view.
Step 2: Select Customize Ribbon.
Step 3: After a dialog box opens, navigate to the right side.
Step 4:
Step 5:
Step 6: Then, click OK.
✔ Click Options.
✔ Click New tab.
✔ Click Rename.
✔ Type a name.
6.12 Nested Increments Write a program for spiritual lumberjacks who want to show their appreciation for each tree they 'kill' by celebrating its years of life. Ask the lumberjack how many trees he wants to cut. Verify you got the number correctly by printing it to output. Write a loop that iterates over all the trees the lumberjack wants to cut down. Print the tree number to the screen to make sure your loop is working correctly. Query the lumber jack for how many rings are in this tree and print this number to make sure you got the correct number of rings. Write an inner loop that iterates over the years of the tree. Print each year to make sure you are iterating correctly and hitting each year that it lived. Change the necessary print statements and to match the correct formatting from the output examples.
Answer:
trees_to_cut = int(input("How many trees do you wants to cut? "))
print(str(trees_to_cut) + " tree(s) will be cut.")
for i in range(trees_to_cut):
print("Tree #" + str(i))
rings = int(input("How many rings in tree " + str(i) + "? "))
print("There are " + str(rings) + " ring(s) in this tree.")
for j in range(rings):
print("Celebrating tree #" + str(i) + "'s " + str(j+1) + ". birthday.")
Explanation:
*The code is in Python.
Ask the user to enter the number of trees to cut
Print this number
Create a for loop that iterates for each tree
Inside the loop:
Print the tree number. Ask the user to enter the number of rings. Print the number of rings. Create another for loop that iterates for each ring. Inside the inner loop, print the celebrating message for each birthday of the tree
This needs to be written in Java.
Create an Automobile class for a dealership. Include fields for an ID number, make, model, color, year, vin number, miles per gallon, and speed. Include get and set methods for each field. Do not allow the ID to be negative or more than 9999; if it is, set the ID to 0. Do not allow the year to be earlier than 2000 or later than 2017; if it is, set the year to 0. Do not allow the miles per gallon to be less than 10 or more than 60; if it is, set the miles per gallon to 0. Car speed should be initialized as 0. Include a constructor that accepts arguments for each field value and uses the set methods to assign the values. Also write two methods, Accelerate () and Brake (). Whenever Accelerate () is called, increase the speed by 5, and whenever Brake () is called, decrease the speed by 5. To allow users to specify the speed to increase (or decrease), create two overloading methods for Accelerate () and Brake () that accept a single parameter specifying the increasing (or decreasing) speed. Write an application that declares several Automobile objects and demonstrates that all the methods work correctly. Save the files as Automobile.java and TestAutomobiles.java
Answer:
Here is Automobile.java
class Automobile { //class name
private int ID, year, milesPerGallon, speed = 0; // private member variables of Automobile of int type
private String model, vinNo, make, color; // private member variables of Automobile of String type
public void setID(int ID){ //mutator method to set ID
if (ID >= 0 && ID <= 9999) // checks ID should not be negative or more than 9999
this.ID = ID;
else this.ID = 0; } //if ID is negative or greater than 9999 then set ID to 0
public void setModel(String model){ // mutator method to set model
this.model = model; }
public void setYear(int year){// mutator method to set year
if (year >= 2000 && year <= 2017) //checks that year should not be earlier than 2000 or later than 2017
this.ID = ID;
else this.year = 0; } //if year is less than 2000 or greater than 2017 then set year to 0
public void setVinNo(String vinNo){ //mutator method to set vin number
this.vinNo = vinNo; }
public void setMilesPerGalon(int milesPerGallon){ //mutator method to set miles per gallon
if (milesPerGallon >= 10 && year <= 60) //checks that miles per gallon should not be less than 10 or more than 60
this.milesPerGallon = milesPerGallon;
else this.milesPerGallon = 0; } //if it is more than 60 or less than 10 then set miles per gallon to 0
public void setSpeed(int speed){ //mutator method to set speed
this.speed = speed; }
public void setMake(String make){ //mutator method to set make
this.make = make; }
public void setColor(String color){ //mutator method to set color
this.color = color; }
public int getID() //accessor method to get or access ID
{return ID;} //returns the current ID
public String getModel() //accessor method to get or access model
{return model;} //returns the current model
public int getYear()// accessor method to get or access year
{return year;} //returns the current year
public String getVinNo() // accessor method to get or access vin number
{return vinNo;} //returns the current vin number
public int getMilesPerGallon() //accessor method to get or access miles per gallon
{return milesPerGallon;} //returns the current miles per gallon
public int getSpeed() //accessor method to get or access speed
{return speed;} //returns the current speed
public String getMake() //accessor method to get or access make
{return make;} //returns the current make
public String getColor() //accessor method to get or access color
{return color;} //returns the current color
public int Accelerate() { //method that increase speed by 5
setSpeed(speed + 5); //calls set speed to add 5 to the speed field
return speed; } //returns the speed after increasing 5
public int Brake() { //method that decreases speed by 5
setSpeed(speed - 5);//calls set speed to subtract 5 from the speed field
return speed; } //returns the speed after decreasing 5
public int Accelerate(int spd) { //overloading methods for Accelerate()that accepts a single parameter spd
setSpeed(speed + spd); //increases speed up to specified value of spd
return speed; }
public int Brake(int spd) { //overloading methods for Brake()that accepts a single parameter spd
setSpeed(speed - spd); //decreases speed up to specified value of spd
return speed; }
public Automobile(int ID, String make, String model, int year, String vinNo, int milesPerGallon, int speed, String color){ //constructor that accepts arguments for each field value and uses the set methods to assign the values
setID(ID);
setModel(model);
setYear(year);
setVinNo(vinNo);
setMilesPerGalon(milesPerGallon);
setSpeed(speed);
setMake(make);
setColor(color); } }
Explanation:
Here is TestAutomobiles.java
public class TestAutomobiles { //class name
public static void main(String args[]) { //start of main method
Automobile auto = new Automobile(123, "ABC", "XYZ", 2010, "MMM", 30, 150, "White"); //creates an object of Automobile class and calls its constructor passing the values for each of the fields
System.out.println("Initial Speed: " + auto.getSpeed()); //calls getSpeed method to get the current speed using object auto. The current speed is 150
System.out.println("Speed after applying acceleration: " + auto.Accelerate()); //calls Accelerate() method to increase the current speed to 5
System.out.println("Speed after applying brake: " + auto.Brake()); //calls Brake() method to decrease the current speed to 5
System.out.println("Speed after applying acceleration: " + auto.Accelerate(180)); //calls overloading Accelerate() method to increase the current speed to 180
System.out.println("Speed after applying brake: " + auto.Brake(50)); } } //calls overloading Brake() method to decrease the current speed to 50
//The screenshot of the output of the program is attached.
HEY DO U LIKE TRAINS!
Answer:
yes
Explanation:
yes
How many parameters (values inside of the
parenthesis) does a message dialog box take?
A. 1
B. 2.
C. O
D. 3
Answer:
The answer to this question is given below.
Explanation:
The message dialog box contains many parameters, but primarily three parameters are used such message, title, and button.
So the correct answer to this question is 3.
The message dialog box contains three parameters such as message, title, and buttons.
Two Smallest (20 points). Write a program TwoSmallest.java that takes a set of double command-line arguments and prints the smallest and second-smallest number, in that order. It is possible for the smallest and second-smallest numbers to be the same (if the sequence contains duplicate numbers). Note: display one number per line. Hint: Double.MAX_VALUE is the largest real number that can be stored in a double variable. java TwoSmallest 17.0 23.0 5.0 1.1 6.9 0.3 0.3 1.1 java TwoSmallest 1.0 35.0 2.0 1.1 6.9 0.3 0.3 6.7 0.3 0.3
Answer:
Written in Java
import java.util.*;
public class Main {
public static void main(String args[]) {
int n;
Scanner input = new Scanner(System.in);
n = input.nextInt();
double nums []= new double [n];
for (int i=0; i<n;i++)
{
nums[i] = input.nextDouble();
}
Arrays.sort(nums);
System.out.println("The two smallest are: ");
for (int i=0; i<2;i++)
{
System.out.println(nums[i]);
}
}
}
Explanation:
This line declares number of input
int n;
This line calls the Scanner function
Scanner input = new Scanner(System.in);
This line gets input from user
n = input.nextInt();
This line declares an array of n elements
double nums []= new double [n];
The following iteration gets input into the array
for (int i=0; i<n;i++)
{
nums[i] = input.nextDouble();
}
This line sorts the array
Arrays.sort(nums);
The following iteration prints the two smallest
System.out.println("The two smallest are: ");
for (int i=0; i<2;i++)
{
System.out.println(nums[i]);
}
Describe yourself as a programming object and give at least 5 properties and 5 methods that you think you are equipped with.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
I consider myself a programming object, then the following are my properties and methods.
Properties (represents the features)
name.height.weight.skin color.eye color,hair styleMethods (represents the behavior)
Walk.Eat,ListenSpeakDrinkWhat is Naptha used for?
Answer:
Naphtha is used to dilute heavy crude oil to reduce its viscosity and enable/facilitate transport; undiluted heavy crude cannot normally be transported by pipeline, and may also be difficult to pump onto oil tankers. Other common dilutants include natural-gas condensate, and light crude.
Answer:
Naphtha is used for laundry soaps and clearing fluids
High Hopes^^
Barry-
What is the output of the following program?
S = "foo"
t = "bar"
print(((s+t)*3).count("barf"))
The output of the following program is 2.
What is output of this program?S = "foo"
t = "bar"
print(((s+t)*3).count("barf"))
here we get The output is 2
Information that is processed and sent out by a program or another electronic device is considered its output. The output is anything that is audible on the display screen, such as the words you type on the keyboard.The term "output" refers to any data that a computer or other electronic device processes and sends. Anything that can be seen on a computer screen, such as the text you write on a keyboard, is an example of output.To learn more about output refer to:
https://brainly.com/question/27646651
#SPJ2
Lee has finished formatting his table. He wants to import an Excel table to show the density and mean temperature data of the terrestrial planets.
Which tab should he navigate to?
Which command group should he use?
Which option should he click?
Which button should he click first in the dialog box that opens?
Answer:
1. Insert
2. Text
3. Object
4. Create from file
Explanation:
On edg
After formatting his Excel table, Lee should navigate to the Insert tab and use the text command group.
What is an Excel table?An Excel table can be defined as a rectangular range of data in a spreadsheet document, which comprises cells that are typically arranged by using rows and columns.
In this scenario, Lee should navigate to the Insert tab and use the text command group after formatting his Excel table.
Also, an option which he click is object while clicking on the "create from file" button in the dialog box that opens.
Read more on Excel table here: https://brainly.com/question/13776450
#SPJ2
how would you share information and communicate news and events
Answer:
You could use Print things (mail, books, etc.) or Online things (internet, social media, etc.)
Hope this helps :)
Which tasks can Kim complete using the Customize Ribbon dialog box? Check all that apply.
Rename existing ribbon tabs.
Rearrange ribbon commands.
Add a new main tab to the ribbon.
Add commands to existing groups.
Create new PowerPoint commands.
Add a new contextual tab to the ribbon.
Answer:
Its A, B, C, and F
Explanation:
On edg
Rename existing ribbon tabs, Rearrange ribbon commands, Add commands to existing groups and Add a new contextual tab to the ribbon.
What is PowerPoint presentation?A PowerPoint presentation is a type of visual aid that creates a slideshow of information that can be presented to an audience using Microsoft PowerPoint software.
It is typically made up of a series of slides that include text, images, charts, graphs, and other multimedia elements to convey information to the audience.
Kim can complete the following tasks by using the Customize Ribbon dialog box:
Existing ribbon tabs can be renamed.Rearrange the commands on the ribbon.To existing groups, add commands.To the ribbon, add a new contextual tab.Thus, Kim cannot use the Customize Ribbon dialog box to add new PowerPoint commands or a new main tab to the ribbon.
For more details regarding presentation ,visit:
https://brainly.com/question/14498361
#SPJ7
Bluetooth's pan are also known as______.
Answer:
personal area network..??
Explanation:
If you are wanting to change programs, when do you need to make this request?
a.To change programs, you must contact your advisor or counselor and complete the change of program application during an open application window.
b.You can change at any time; just email your advisor regarding the change.
c.You can never change programs.
d.You do not need to notify anyone. You just need to start taking courses for the desired program.
Answer:
If your discussing colleges and degrees, you cant take courses your not autorized to take.
So if you have one major and wish to change to another then you need to discuss with a student advisor or counseler so they can make the changes. They will also discuss which classes are necessary for your program of choosing, making sure all your requirements are completed.
Explanation:
Gloria is adding footers to a PowerPoint template for students to use in a literature class. Each student must choose an author and make a presentation about their life and work. She wants the first slide in each presentation to show only the author’s name and photo. On subsequent slides, she wants to include a footer with a date and time that changes depending on the actual date of each presentation.
After selecting the Slide Master view, how should Gloria proceed?
She should select
.
Next, she should select
.
Then, she should select
.
Finally, she should make changes in the
.
Answer:
✔ the Slide Master thumbnail
✔ the Insert tab
✔ Header & Footer
✔ Slide tab in the dialog box
Explanation:
On edg
The Slide Master thumbnail, the Insert tab and Header & Footer and Slide tab in the dialog box.
What is Dialog box?A dialog box, often known as a dialog or a conversation box, is a typical form of window in an operating system's graphical user interface (GUI).
In addition to displaying more details, the dialog box also prompts the user for input.
For instance, you interact with the "File Open" dialog box when you want to open a file while using a software. The Properties dialog box appears in Microsoft Windows when you right-click a file and select Properties.
A dialog box, often known as a dialog or a conversation box, is a typical form of window in an operating system's graphical user interface (GUI). In addition to displaying more details, the dialog box also prompts the user for input.
Therefore, The Slide Master thumbnail, the Insert tab and Header & Footer and Slide tab in the dialog box.
To learn more about Software, refer to the link:
https://brainly.com/question/985406
#SPJ3
Let's play Silly Sentences!
Enter a name: Grace
Enter an adjective: stinky
Enter an adjective: blue
Enter an adverb: quietly
Enter a food: soup
Enter another food: bananas
Enter a noun: button
Enter a place: Paris
Enter a verb: jump
Grace was planning a dream vacation to Paris.
Grace was especially looking forward to trying the local
cuisine, including stinky soup and bananas.
Grace will have to practice the language quietly to
make it easier to jump with people.
Grace has a long list of sights to see, including the
button museum and the blue park.
Answer:
Grace sat quietly in a stinky stadium with her blue jacket
Grace jumped on a plane to Paris.
Grace ate bananas, apples, and guavas quietly while she listened to the news.
Grace is the name of a major character in my favorite novel
Grace was looking so beautiful as she walked to the podium majestically.
Grace looked on angrily at the blue-faced policeman who blocked her way.
2
Select the correct answer from each drop-down menu.
Different web browsers perform similar
functions, which are presented in the form of?
A. Text labels
B. Webpages
C. Buttons and menus
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct answer to this question is B.
Because different browsers perform similar functions that are presented in the form of webpages. If you want to run the webpage in chrome, it will run similarly as you run it in internet explorer or in firefox.
However, other options such as text labels and buttons and menus are not the browser functions because these are the elements of the webpages.
so the correct answer to this question is webpages.
To close a window in Windows 10, you can _____. Select all that apply. A. right-click its button on the taskbar, then click Close window B. click the Close button in the upper-right corner of the window C. click the Close button in the window's thumbnail on the taskbar D. click the Start button and click the program name or icon
Answer:
A, B and C
Explanation:
A, B and C
(The following is unrelated to the answer just to fill the letters criteria)
For closing the window in Windows 10, the following steps should be considered:
The right-click should be done on the taskbar and then click on the close window.On the upper-right corner of the window, click on the close button.On the window thumbnail that shows on the taskbar, click on the close button.Now if we click on the start button and then click the program icon so the particular program opens instead of closing it.
Therefore the above steps are considered for closing out the window in windows 10.
Learn more about windows 10 here: /brainly.com/question/19652025
______________ helps you see how your document will appear on the paper.
Answer:
Print Preview
Explanation:
The "Print Preview" gives a person the idea on how his/her document will look like once it is printed out. Having an overview of the document will let you know whether you need to do some adjustments or edit some things before you actually print it.
There's a shortcut for this when it comes to the "Microsoft Word." All you have to do is to press ctrl + F2. Nevertheless, more modern computers don't need the print preview anymore since you can see the whole document on the actual print page.
There are a multitude of items that Cyber Security professionals view as attack vectors but none are more prevalent and exploitable than application code or as readily available as the network perimeter. There are many ways that these areas are exploited. The application side has its beginning with code which is poorly designed from a security perspective. One of the code items that is exploited by fraudsters to pivot across an organization's internal network is the Web.cfg file - in this file non security minded programmers often leave the User ID and password for connecting to the associated database in plaintext.
For part one of this assignment, write a 1 page summary that explains to a non IT person what this attack is, how it works and how to prevent it.
The second part of this assignment is about the secure perimeter. Using your choice of reference for securing a network (NIST, Rainbow Series Red Book, Common Criteria etc.) research on how to design a secure network perimeter that will protect the internal applications, even poorly written ones like the one above from being exploited. Include a diagram of your solution and on the bottom half - a written explanation, in APA format, of your solution.
AnsweR
RRR
Explanation:
Gloria is adding footers to a PowerPoint template for students to use in a literature class. Each student must choose an author and make a presentation about their life and work. She wants the first slide in each presentation to show only the author’s name and photo. On subsequent slides, she wants to include a footer with a date and time that changes depending on the actual date of each presentation.
To insert the footer according to her plan, what must Gloria click in the Header & Footer dialog box?
Fixed
Preview
Slide number
Don’t show on title slide
Answer:
Its D
Explanation:
On edg
Answer: don’t show on title slide
Explanation:
Which of the following takes place during the research phase
I am unsure if this is the correct question, but I think this is the full question:
Which of the following takes place during the research phase? (choose all that apply)
O software requirements are gathered
O software requirements are implemented in code
O software requirements are analyzed
O software requirements are detailed in a specification document
The answers to this question are software requirements are gathered, software requirements are analyzed, and software requirements are detailed in a specification document (1st, 3rd, and 4th options).
Write both an iterative and recursive solution for the factorial
problem.
Answer:
Explanation:
Recursive:
C++ program to find factorial of given number
#include <iostream>
using namespace std;
unsigned int factorial(unsigned int n)
{
if (n == 0)
return 1;
return n * factorial(n - 1);
}
// Driver code
int main()
{
int num = 5;
cout << "Factorial of "
<< num << " is " << factorial(num) << endl;
return 0;
Iterative:
// C++ program for factorial of a number
#include <iostream>
using namespace std;
unsigned int factorial(unsigned int n)
{
int res = 1, i;
for (i = 2; i <= n; i++)
res *= i;
return res;
}
// Driver code
int main()
{
int num = 5;
cout << "Factorial of "
<< num << " is "
<< factorial(num) << endl;
return 0;
}