answersLogoWhite

0

We can use any method. As we can find out the area of the circle by three methods as i known.

1.ordinary programming

e.g. void main() {

int r;float area;

printf("\n\tEnter radius of the circle : "); scanf("%d",&r); area=3.14*r*r; printf("Radius = %d and area=%f",r,area); } 2. By using macros e.g. #define PI 3.14

#define AREA(x) PI*x*x 3. We can solve by user defined functions also

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

What is a floating number?

A floating point number is one that contains an integer as well as a fractional part, for example 101.3625. These are often represented by their scientific notations as well, such as 1.013625E2


What are advantages and disadvantages of Integer programming?

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers. However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger. For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.


How do you calculate a loop in visual basic 2010?

For i as integer = 1 to 10 ....... Next i


Write a programme to perform binary operations on integer argument The arguments and operators should be accepted using command line parameters?

There are many different operators, which are you referring to?


When do you need to use default arguments in a function?

We declare (not use) default arguments in a function whenever the default values cover the majority of calls to that function. We use default arguments in order to simplify those calls and thus reduce the verbosity of our calling code, thus making it easier to call the function.

Related Questions

How do you calculate the number of digits in an integer value using c programme?

#include <math.h> inline unsigned int get_num_digits(const unsigned int n) { return ((unsigned int) log10(n) + 1); }


What is the smallest positive integer floating point value that can be represented in a computer system?

The smallest positive integer floating point value that can be represented in a computer system is typically around 1.4 x 10-45.


What are the key differences between floating point and integer data types?

The key difference between floating point and integer data types is how they store and represent numbers. Integer data types store whole numbers without any decimal points, while floating point data types store numbers with decimal points. Integer data types have a fixed range of values they can represent, while floating point data types can represent a wider range of values with varying levels of precision. Floating point data types are typically used for calculations that require decimal precision, while integer data types are used for whole number calculations.


What is the largest integer and the largest floating-point number?

In real-world math, there is no "largest" integer or floating point number. This is covered by the concepts known as "infinity" and "irrationality." Depending on the processor and/or application, a number with significant digits into the thousands can be operated upon.


What is a floating number?

A floating point number is one that contains an integer as well as a fractional part, for example 101.3625. These are often represented by their scientific notations as well, such as 1.013625E2


Is 9.6 and integer?

No, 9.6 is a floating-point number. Integers are whole numbers without fractional parts.


What are advantages and disadvantages of Integer programming?

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers. However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger. For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.


How can the decimal real number 175.23 be represented as a 6 digit integer in floating point notation?

175.23*10^-2


How do you calculate a loop in visual basic 2010?

For i as integer = 1 to 10 ....... Next i


How do you calculate integers?

the sum of two consecutive integers is -241, what is the larger integer?


How can the decimal real number 1385.58 be represented as a 6-digit integer in floating point notation?

138558 x 10-2


How do you convert 5 into a fraction?

5 is an integer and not a fraction. However, it can be expressed in rational form as 5/1. You can then calculate equivalent rational fractions if you multiply both, its numerator and denominator, by any non-zero integer.5 is an integer and not a fraction. However, it can be expressed in rational form as 5/1. You can then calculate equivalent rational fractions if you multiply both, its numerator and denominator, by any non-zero integer.