answersLogoWhite

0


Best Answer

To find the area of a square, the person can simply multiply length times width, which would be two sides of the square. To find area of a circle, the person must use the equation ((pie)(r))(squared).

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

#include

using std::cin;

using std::cout;

using std::endl;

void getData(double& length, double& width);

double Area(double length, double width);

int main()

{

double length = 0.0;

double width = 0.0;

getData(length, width);

cout << endl << "Area is: " << Area(length, width) << endl;

system("PAUSE");

return 0;

}

void getData(double& length, double& width)

{

cout << endl << "Enter length: ";

cin >> length;

cout << "Enter width: ";

cin >> width;

}

double Area(double length, double width)

{

return (length * width);

}

*The program was checked in VS2008

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Lxi d,0000h

lhld 4000h

mov c,l

mov b,h

up: dad d

dcx b

jnz up

hlt

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write an assembly language programin 8085 to find a square of a given number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

When is a number called a 'Sunny' number?

A number is said to be 'sunny' when, 1 added to that number, the square root of it becomes a whole number...


How do you write a program to find whether a number is a perfect square in java?

Example: int x, y; x = 5; y = x * x; // square of x System.out.println("The square of " + x + " = " + y); Put all this in your main() method. Most Java IDEs will generate the main() method automatically.


What is transistor density?

The number of transistors in a defined square area on an IC chip.


How do you write a program in java to check a number is neon number?

class neonn { ; public static void check()throws IOException ; { ; BufferedReader br = new BufferedReader ( new InputStreamReader(System.in)); ; int num; ; System.out.println("Enter the number to be checked!"); ; num=Integer.parseInt(br.readLine()); ; int square; ; square=num*num; //squaring the number ; ; int sum=0; ; ; String sqs=Integer.toString(square); ; for(int i=0; i&lt;sqs.length(); i++) ; sum+=Integer.parseInt(sqs.substring ( i,i+1 ) ) ; ; ; if (sum==num) //checking if the sum of the square is equal to the number entered ; System.out.println(num+" is a Neon Number!"); // if yes. It is neon ; else ; System.out.println(num+" is not a Neon number!"); //otherwise not ; ; } ; }


C program to find square of an integer?

#include#includevoid main(){long int n;printf("Please enter the number");scanf("%ld" ,&n);n=n*n;printf("Square of entered number = %ld ");}but if you want to show the entered number e.g.Square of the entered number 8=64then below is the code.#include#includevoid main(){long int m,n;printf("Please enter the number");scanf("%ld" ,&n);m=n;n=n*n;printf("Square of entered number %ld = %ld ",m,n);}