Related questions
DO NOT COPY FROM OTHER WEBSITES
Code with comments and output screenshot is must for an Upvote. thank you!
/*Program that defines recursive function to find Factrial of number*/
//include standard input/output header
#include<stdio.h>
//function to find factorial of number n recursively
int factorial(int n)
{
if (n<=0)
{
return 1;
}
else
{
//calling factorial function recrsively and multiply
//its return value to get factorial of n
return n*factorial(n-1);
}
}
//main function of program
int main()
{
int n;
//Ask user to enter a number and store it in n
printf("Enter a number: ");
scanf("%d",&n);
//call factotial function and display factrial of number
printf("Factorial of number %d = %d", n, factorial(n));
return 0;
}
Step by stepSolved in 2 steps with 1 images
- Please create an online document editor using HTML, CSS, and JavaScript. Include a menu where it show a cool journal logo and a button (Start journaling) to click In the online document editor include a copy and paste button, a file button, where user can click new (to open a new page) Open to click on any existing documents. Let documents be saved automatically. Please also include: - Font Size - Font Type - Bold text button - A way to change font color - And when writing once the text gets to the end of the page, let it start a new linearrow_forwardCreate an HTML5 form as close to the listed below as possible. And process it on back end using PHP programming language. Use GET method.arrow_forwardThree buttons on the webpage at the bottom, I want each button to change the background color for the header at the top when the user clicks the button. Choose an appropriate color. ONLY USING JAVASCRIPTarrow_forward
- Using netbeans, fix the given code below and run it using netbeans. Show the screenshot result. It should be the same as the result picture given belowarrow_forwardThe default color for a page is defined in the body selector Select one: O'True O False How do you display hyperlinks without an underline? Select one:arrow_forwardComplete the following webpage assignment. Assignment Instructions: Design a webpage to simulate a Blog. The website must have a banner image and a featured image with multiple resolutions to be active at different resolution breakpoints just as discussed in this lesson. Include a jQuery script in your project to further enhance the user experience. Use one of the CDN libraries. The script is up to your discretion though you must be able to justify its use. The blog page must be aesthetically pleasing and follow a traditional blog structure. It may help to look at the many WordPress templates available on the net.arrow_forward
- Criteria to include on page: A div that is centered at the top of each page for the title of the site (mine below is "ResumeMohammed Alazawi") A div that is centered and visible (acts as a buffer) and contains within it three divs that arecentered and horizontally next to each other (for me, it is the pink, green, and yellow divs).o Tip: to center the three divs, put them in another centered div (below the red div iscentered and there is another div centered in that which you cannot see, but it is justacting as a container for the pink, green, and yellow divs) Link to all of your other pages. These links should have pseudo classes assigned so that the colorof the link varies depending on if the user is hovering, it is active, visited, or if it is just a link. Inaddition, place the "title" attribute in the anchor tag and see what happens (Google titleattribute HTML if you are having trouble. The first result should be a w3 schools site, which wehave all seen before. This will have...arrow_forwardWhen your main page loads, prompt the user for their name and store it in a variable. Then create an alert that welcomes the user to the page using the name they entered. (HINT: the instructions indicate the event handler to use!) On each of your pages, use javascript to display automatically the day/time the page was last updated. (HINT: This is a property of the document!) On at least two of your images on your image page, add a script that displays an alert when the user clicks one of the images. The alert should give a short description or additional information about the image. Add a countdown to something relevant to the company (holiday, event, specials/sales, etc.) and display the output in your HTML. This should update automatically subtracting the date of the event and the current date. The output will look something like "There are ### days until the sale!" where ### is automatically filled in with the number of days calculated using the javascript. This should not be a...arrow_forward
- Text book imageComputer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONText book imageComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceText book imageNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Text book imageConcepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningText book imagePrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationText book imageSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY