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
meriva
4 years ago
14

Write a program in pascal to find the area of a circle

Computers and Technology
1 answer:
umka2103 [35]4 years ago
5 0

Program Area_Circle;

Uses Crt;

Const

Pi = 3.1416;

Var

Radius : Integer;

Area : Real;

Begin

Clrscr;

Writeln('Area of a Circle Solver');

Writeln;

Write('Enter the Radius of the Circle : ');

Readln(Radius);

Area := (Pi * Radius * Radius);

Writeln;

Writeln('The Area of the Circle is ' ,Area:8:2,'.');

Writeln;

Writeln('Program Executed');

Readln;

End.

Hope this helps!

You might be interested in
Name at least three classes to which each of these objects might belong:
deff fn [24]
Cooking class and history and the other one I don’t know
4 0
3 years ago
Oliver is creating anime using a less popular, traditional tool to create the style anime is known for. Which tool is Oliver usi
Makovka662 [10]
I think it might be c or b
5 0
3 years ago
Read 2 more answers
What is an example of constructive criticism for an employee who is shy during meetings?
rewona [7]
<span>Speak up more so people don't think you're rude</span>
8 0
4 years ago
Read 2 more answers
Let's write a simple markdown parser function that will take in a single line of markdown and be translated into the appropriate
Klio2033 [76]

Answer:

Here is the answer in Java with appropriate comments for understanding

Explanation:

import java.util.Scanner;

public class Hash {

public static void main(String[] args) {

System.out.print("Enter a string : ");

Scanner scanner = new Scanner(System. in);

String s = scanner. nextLine();   //read string

int k=s.lastIndexOf('#'),count=0;//find last occurence of # then take the next part

  String s2="",s3="";

  for(int i=0;i<s.length();i++)

  {

      if(s.charAt(i)=='#')

          count++;//count the occurence of # of level of heading h1,h2,h3,....

  }

  for(int j=k+1;j<s.length();j++)

  {

      s2+=s.charAt(j);//take the remainging string after #

  }

// System.out.println(k);

 

//System.out.println(count);

if(count<=6)//if it is valid heading

{

  s3="<h"+count+">"+s2+"</h"+count+">";

  System.out.println(s3);  

}

else

  System.out.println("Invalid header");

 

}

}

6 0
3 years ago
When you use an external style sheet with an HTML document, you get all but one of the benefits that follow. Which one is it?
IRISSAK [1]

Answer:

Your CSS files are smaller and simpler.

Explanation:

External stylesheet are used in HTML pages to keep the HTML content and its styling separate. When using external stylesheet all the style rules are defined in CSS files and HTML files only contain the HTML code.

By using external style sheet,

  • One can make HTML code smaller and simpler.
  • One can use the same stylesheet in multiple HTML pages and thus provide styling to multiple pages.
  • With external stylesheet one can alter the single stylesheet code and its effect can be seen on all pages which are using that stylesheet.

Using external stylesheet has no effect on the content of CSS files. The CSS files will contain the same CSS style rules that are defined for any HTML page within the page.

Thus using external stylesheet doesn't make CSS files smaller and simpler.

6 0
4 years ago
Other questions:
  • When used as parameters, _________ variables allow a function to access the parameter’s
    10·1 answer
  • To create an identical version of a slide you would click
    6·2 answers
  • Arpanet was developed by the united states so that there was a communication network that would survive a nuclear war. True or F
    11·1 answer
  • Reputable firms often ask recent graduates to pay an up-front fee for a job.
    10·2 answers
  • Write the percentage 5 1/4 as a decimal​
    8·1 answer
  • UDP and TCP use 1s complement for their checksums. Suppose you have the following three 8-bit bytes: 01010011, 01100110, 0111010
    13·1 answer
  • What is the difference between player-centric game design and designer-centric game design? How does a player-centric game assis
    7·1 answer
  • Explains why do we use formulas instead of just using a calculator in Excel?​
    7·1 answer
  • How to recover deleted photos after deleting from recently deleted
    13·2 answers
  • Dentify the benefits of workplace diversity. Select all that apply.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!