Debian Codegraph @

online/static/samples/Getting Started/Calculate Area Of A Circle.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <variables>
3 <variable id="A[;^1W,!XrD1yp]{Ligb">radius</variable>
4 <variable id="q*MF(Gj|cmUFeD8p2,xH">area</variable>
5 </variables>
6 <block type="variables_set" id="GT})?;Wr|^c=b5YMVK8Q" x="16" y="59">
7 <field name="VAR" id="A[;^1W,!XrD1yp]{Ligb">radius</field>
8 <value name="VALUE">
9 <block type="text_prompt_ext" id="a*YeJ-NgAYebueuqGLij">
10 <mutation type="NUMBER"></mutation>
11 <field name="TYPE">NUMBER</field>
12 <value name="TEXT">
13 <shadow type="text" id="s_k*-@Ke|fZGm?vd-m.B">
14 <field name="TEXT">Enter Radius</field>
15 </shadow>
16 </value>
17 </block>
18 </value>
19 <next>
20 <block type="variables_set" id="#,xrO-v8R2*77=M#tD33">
21 <field name="VAR" id="q*MF(Gj|cmUFeD8p2,xH">area</field>
22 <value name="VALUE">
23 <block type="math_arithmetic" id="ab{*X6I3flNk}JH67id3">
24 <field name="OP">MULTIPLY</field>
25 <value name="A">
26 <shadow type="math_number" id="+*K+$p8/fQfsPQgK!o%I">
27 <field name="NUM">1</field>
28 </shadow>
29 <block type="math_constant" id="ftMhH(L@Cy#2R;`FSo$I">
30 <field name="CONSTANT">PI</field>
31 </block>
32 </value>
33 <value name="B">
34 <shadow type="math_number" id="SST8yZ|-wFTo}b@4fQ+,">
35 <field name="NUM">1</field>
36 </shadow>
37 <block type="math_arithmetic" id="(sy9-JZpA-t#Rzo~,HaG">
38 <field name="OP">MULTIPLY</field>
39 <value name="A">
40 <shadow type="math_number" id="iF6(d1[u)-5#eZ-|@#YR">
41 <field name="NUM">1</field>
42 </shadow>
43 <block type="variables_get" id="J061hUbDs57pr[}?[q7z">
44 <field name="VAR" id="A[;^1W,!XrD1yp]{Ligb">radius</field>
45 </block>
46 </value>
47 <value name="B">
48 <shadow type="math_number" id="uJ$G=0dg$ZhqYK`3:qAX">
49 <field name="NUM">1</field>
50 </shadow>
51 <block type="variables_get" id="E$N0X{2=_w%rbaA~;0[;">
52 <field name="VAR" id="A[;^1W,!XrD1yp]{Ligb">radius</field>
53 </block>
54 </value>
55 </block>
56 </value>
57 </block>
58 </value>
59 <next>
60 <block type="cs_print" id=",tIj886:iy`O[9v99|C?">
61 <value name="TEXT">
62 <shadow type="text" id="deht5fx7`ZdY1.z^)AjX">
63 <field name="TEXT">hello</field>
64 </shadow>
65 <block type="variables_get" id="+Q/4fKPL-kC|+x~|v=Dm">
66 <field name="VAR" id="q*MF(Gj|cmUFeD8p2,xH">area</field>
67 </block>
68 </value>
69 </block>
70 </next>
71 </block>
72 </next>
73 </block>
74 <description>
75 <![CDATA[<p>To calculate the area of a circle, you can use the formula:</p><p><br></p><p>Area = π * radius²</p><p><br></p><p>Where π (pi) is approximately 3.14159, and the radius is the distance from the center of the circle to any point on its edge. Simply square the radius and multiply it by π to find the area.</p><p><br></p><p><br></p><p>This program asks you to enter the value of the radius, and uses the formula to calculate the area</p>]]>
76 </description>
77 </xml>