1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sloan [31]
4 years ago
13

Assignment: Write a complete MIPS program that implements the algorithm below (in C ). This algorithm calculates the factorial f

or the value of m. You should setup "m" as a variable in your program so that it is easy to change this value and rerun the program to get a different result. In case you are unsure of what a factorial is, it is the multiplication of an integer with all integers from 1 to that integer. One special case is the the value of zero factorial is 1. So, for 5 factorial (written as 5!), the value is 5*4*3*2*1
Computers and Technology
1 answer:
bekas [8.4K]4 years ago
4 0

Explanation:

There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.

The code of finding factorial is written below;

CODE

#include<stdio.h>

int main (void)

{

    int i,

   int factorial =1,

   int input;

   printf("Enter a number for finding its factorial: ");

    scanf("%d",&input);

   if (input == 0)

factorial = 0

 eles

    for ( i =1; I < = input ;i++)

        factorial = factorial*i;

   

    printf("Factorial of given %d is: %d",input,factorial);

    return 0;

  }

You might be interested in
Do you believe that OOP should be phased out and we should start working on some alternative(s)?
katen-ka-za [31]

Answer:

The answer to this question can be defined as below:

Explanation:

There are many new directions for solutions for any given problem in today's computer age, in which the "OOP's" is one of the philosophies of preference.  

  • If the issue for each of the several cases can be degraded in various classes, that reveal complex relationships.  
  • In this process the OO analysis is acceptable with other concepts, these issues usually produce difficult outcomes, that's why I don't believe in this modeling.
5 0
4 years ago
Which of the following devices electronically sorts mail by ZIP code?
irina [24]
The answer is OCR or optical character reader.
This device is used to electronically sorts mails by zip code.
This device reads texts from the papers or documents, images and pdf files,  and then convert it into editable file.
7 0
3 years ago
Because of their reasonable cost and print quality ___ printers are used in homes and schools
serious [3.7K]

'INK-JET'
because of their reasonable cost and print quality ___ printers are used in homes and schools

7 0
4 years ago
You work in an office that uses Linux and Windows servers. The network uses the IP protocol. You are sitting at a Windows workst
Aleksandr-060686 [28]

Answer:

PING

Explanation:

To check if there's still connectivity between the computer and server, I would use the ping command.

The ping command is primarily a TCP/IP command. What this command does is to troubleshoot shoot. It troubleshoots connection and reachability. This command also does the work of testing the name of the computer and also its IP address.

4 0
3 years ago
In _____ conversion of the implementation phase of the systems development life cycle (SDLC), the old and new systems run simult
coldgirl [10]

Answer:

b. parallel

Explanation:

According to my experience on information technology, I can say that based on the information provided within the question the term being mentioned is called Parallel Conversion. Like mentioned in the question this term refers to when two systems run at the same time while transferring operations in order to make sure that everything is running correctly and are outputting the same results.

If you have any more questions feel free to ask away at Brainly.

8 0
3 years ago
Other questions:
  • What has prompted schools to add Internet activities in their academic integrity policies?
    6·2 answers
  • What is the speed limit in school zone
    11·2 answers
  • To gain experience of using and combing different sorting algorithms: election sort, insertion sort, merge sort, and quick sort.
    14·1 answer
  • Why is it important to use standard english when applying for a job
    13·2 answers
  • Which symbol is used to identify edge-triggered flip-flops? a triangle on the clock input. the letter e on the enable input. a b
    14·1 answer
  • C++
    11·1 answer
  • Why should the Six-Step Process be considered as an iterative process?
    8·1 answer
  • Jeremy knows that there is a keyboard shortcut in Word, but he does not know what it is. What should Jeremy do to find out what
    14·1 answer
  • The. Model has the disadvantage of high project cost due to creation several prototypes
    6·1 answer
  • The internet is controlled by ______
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!