answersLogoWhite

0


Best Answer

Not sure what you mean; if you want to measure the "input size" in bytes, that would probably be 8 bytes, since integers typically use 4 bytes.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an adequate measure of the size of input for a program that requires two integer numbers n?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is 2.5 an integer?

No, but 2 and 3 are.No because integers are whole numbers


What is the formula that would get the tenths digit number in a three digit integer number?

In a three digit integer number the tenthsdigit is always 0 as integer numbers are whole numbers and have no decimal part and tenths are decimal parts:tenths_digit_of_integer_number = 0I suspect you mean "How to find the tens digit of an integer number?"; this is the second from the right, so:tens_digit = (INT(number ÷ 10)) MOD 10For example, in C this would become: tens_digit = (number / 10) % 10;


Abstract data type that store a whole numbers?

All data types can be used to store a whole number, even the data types that can store a decimal number.


Types of data type?

A data type that can store integer numbers. The details vary depending on the programming language; many language have different integer types to accomodate different sizes. This lets the programmer use a smaller size (and save memory space) when he only needs to store fairly small numbers - and especially when he needs to store LOTS of fairly small numbers, as in an array. Common sizes include 1 byte, 2 bytes, 4 bytes and 8 bytes of storage.


Java code to average and total a set of numbers?

The below method is written in the assumption that, the n numbers are sent as an ArrayList of Integer values. public void computeSumAndAvg(ArrayList lst){ Iterator itr = lst.iterator(); int sum = 0; float average = 0; int count = 0; while(itr.hasNext(){ Integer val = (Integer) itr.next(); sum = sum + val.intValue(); count++; } average = sum/count; System.out.println("Sum is: " + sum) ; System.out.println("Average is: " + average) ; }

Related questions

What is the difference between an integer answer and a number answer?

A number answer can be correctly solved by whatever numbers happen to solve it, with no restrictions as to what type of numbers they may be: fractional, rational, real, etc. An integer answer requires that the result be expressed only as an integer, which is a positive or negative whole number (including zero). As such, integer answers are a subset of number answers.


Is 63.46 an integer?

Integer are whole numbers. As 63.46 is not a whole number, it is not an integer.


Is negative sixteen an integer?

Yes. "Integer" includes positive numbers, negative numbers, and zero.


Meaning of non-integer rational numbers?

non integer rational numbers means the numbers in p/q form and this value is not a perfect integer. ex: 22/7


What is an integer of 71 but the difference of 3?

71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 numbers.71 is, itself an integer but to find a difference you require 3 numbers.


What is the difference between integer numbers and float numbers?

Integer numbers : ...-5,-4,-3,-2,-1,0,1,2,3,4,5... Float numbers 1.25, 1.26 etc They are float numbers because its value can be altered after the point, which is based on an integer number.


What is the Difference between an integer and a real number?

Integer numbers are a subset of real numbers. Real numbers may contain fractions.


Is a negative integer bigger then a positive integer?

no, all negative numbers are smaller than positive numbers


Is negative 11 an integer?

Yes the integer group includes negative numbers, positive numbers, and 0.


If the product of two numbers is an integer then the two numbers must be integer?

Not at all. Six times one half is three, and one half is not an integer.


What integer numbers that are not whole numbers. Natural numbers?

Zero


What is the integer for 5000000?

By the property of uniqueness of numbers, the only integer for 5000000 is 5000000.