answersLogoWhite

0

if you are talking integers the most modern languages have loops and output to console or stream. example int i = 1; for(;i<=10;i++) { printf(i); }

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

output of a c program using function to find factorial of a number?

In a C program that calculates the factorial of a number using a function, the program typically prompts the user for an integer input. The function then recursively or iteratively computes the factorial by multiplying the number by the factorial of the number minus one until it reaches one. For example, if the user inputs 5, the program outputs 120, as 5! = 5 × 4 × 3 × 2 × 1. The final result is displayed on the screen.


How many outputs are possible for 4 input decoder?

A 4-input decoder can produce (2^n) outputs, where (n) is the number of inputs. For a 4-input decoder, (n = 4), so the number of possible outputs is (2^4 = 16). Therefore, a 4-input decoder can generate 16 distinct output lines based on the 4 input combinations.


How is it possible to have more then one output number or each input number?

You will get that if the relationship that you are studying is not a function. For example, for each person, you record the ages of their parents when the person was born. That gives two ages (outputs) for each person (input). Or you could record the height and mass of each pupil in your class: two outputs per person.


What is the number of inputs and outputs of a decoder that accepts 128 different input combinations?

A decoder that accepts 128 different input combinations requires 7 input lines, as (2^7 = 128). The number of output lines corresponds to the number of unique output combinations, which is also 128, since each input combination produces a distinct output. Therefore, the decoder will have 7 inputs and 128 outputs.


How many data inputs contains by a 64 output lines decoder?

A 64-output line decoder has 6 data inputs. This is because a decoder's number of outputs (N) is related to the number of inputs (n) by the formula ( N = 2^n ). Therefore, to achieve 64 outputs, you need ( n ) such that ( 2^n = 64 ), which means ( n = 6 ).

Related Questions

How do you write psudocode for a program that outputs every number from 0 through 8 along with it's square and cube?

for i = 0 to 8 { print i, i^2, i^3 }


How many number of inputs and outputs will a full adder will have?

3 inputs and 2 outputs


What is the maximum no of output a logic gate can have?

The maximum number of outputs a standard logic gate can have is typically one. However, certain complex gates like multiplexers or decoders can have multiple outputs, depending on their design and function. For example, a 2-to-4 line decoder has four outputs, but these are derived from the combination of its inputs. In general, basic gates like AND, OR, and NOT are designed for a single output.


output of a c program using function to find factorial of a number?

In a C program that calculates the factorial of a number using a function, the program typically prompts the user for an integer input. The function then recursively or iteratively computes the factorial by multiplying the number by the factorial of the number minus one until it reaches one. For example, if the user inputs 5, the program outputs 120, as 5! = 5 × 4 × 3 × 2 × 1. The final result is displayed on the screen.


What is the number of inputs and outputs of a decoder that accepts 64 input combinations?

1


What are the inputs and outputs for a fan?

The number &amp; types of inputs &amp; outputs will vary with the complexity of the VFD &amp; serve as a means of comparison between manufacturers of variable frequency drives. VFD inputs &amp; outputs are either digital or analog signals. Digital inputs &amp; outputs have two states (either on or off), while analog inputs &amp; outputs have many states that vary across a range of values.


How much an PLC have outputs and inputs maximum?

There are PLC with fixed inputs and outputs. There are modular ones which can be added on with inputs and outputs. So number of input and output of a PLC is actually based on the type of PLC you choose. Different types are available in the market.


Is there any label design program can support common printer?

There are a great number out there. Many are commercial versions but there are some freeware and shareware available - try searching through your web browser for label software adding free at the beginning if cost is an issue


How do primary school pupils use algebra?

They are introduced to algebra through number machines. These are simple input-output processes. The pupils are given the machine's function, for example, "double the number and add 7". They are then given different inputs and asked to find the outputs.The next stage is giving them the inputs and outputs and asking them to work out the function.Finally, there are simple simultaneous equations - with integer solutions.They are introduced to algebra through number machines. These are simple input-output processes. The pupils are given the machine's function, for example, "double the number and add 7". They are then given different inputs and asked to find the outputs.The next stage is giving them the inputs and outputs and asking them to work out the function.Finally, there are simple simultaneous equations - with integer solutions.They are introduced to algebra through number machines. These are simple input-output processes. The pupils are given the machine's function, for example, "double the number and add 7". They are then given different inputs and asked to find the outputs.The next stage is giving them the inputs and outputs and asking them to work out the function.Finally, there are simple simultaneous equations - with integer solutions.They are introduced to algebra through number machines. These are simple input-output processes. The pupils are given the machine's function, for example, "double the number and add 7". They are then given different inputs and asked to find the outputs.The next stage is giving them the inputs and outputs and asking them to work out the function.Finally, there are simple simultaneous equations - with integer solutions.


How many outputs are possible for 4 input decoder?

A 4-input decoder can produce (2^n) outputs, where (n) is the number of inputs. For a 4-input decoder, (n = 4), so the number of possible outputs is (2^4 = 16). Therefore, a 4-input decoder can generate 16 distinct output lines based on the 4 input combinations.


Is Noddy out of copyright?

There are a number of works by that name. The 1998-2000 television program will be protected through 2093.


You are write a program that will read a list of number in the range from 1to n and will print for each number the corresponding term in cantor's enumeration as given no blank line should appear last?

see pages 43-49 in Principles of Program design by M. A. Jackson, 1975