<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.ifsc.edu.br/index.php?action=history&amp;feed=atom&amp;title=Solucao_3_Exercicio_Retangulo</id>
	<title>Solucao 3 Exercicio Retangulo - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ifsc.edu.br/index.php?action=history&amp;feed=atom&amp;title=Solucao_3_Exercicio_Retangulo"/>
	<link rel="alternate" type="text/html" href="https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;action=history"/>
	<updated>2026-06-02T12:16:43Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16145&amp;oldid=prev</id>
		<title>imported&gt;Fargoud em 20h04min de 17 de agosto de 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16145&amp;oldid=prev"/>
		<updated>2017-08-17T20:04:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 17h04min de 17 de agosto de 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;Linha 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      ys = y2;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      ys = y2;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;//&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  int Retangulo::Calcula_Perimetro()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  int Retangulo::Calcula_Perimetro()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {   int perim;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {   int perim;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Fargoud</name></author>
	</entry>
	<entry>
		<id>https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16144&amp;oldid=prev</id>
		<title>imported&gt;Fargoud em 20h03min de 17 de agosto de 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16144&amp;oldid=prev"/>
		<updated>2017-08-17T20:03:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;pt-BR&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Edição anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Edição das 17h03min de 17 de agosto de 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot;&gt;Linha 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Linha 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     for(i = 1; i&amp;lt; (xs - xi); i++)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     for(i = 1; i&amp;lt; (xs - xi); i++)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         printf(&amp;quot;-&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         printf(&amp;quot;-&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     printf(&amp;quot;\n\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     printf(&amp;quot;\n\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Fargoud</name></author>
	</entry>
	<entry>
		<id>https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16143&amp;oldid=prev</id>
		<title>imported&gt;Fargoud: Criou página com ' #include &lt;iostream&gt;  #include &lt;stdio.h&gt;  //  using namespace std;  //  class Retangulo  { private:     int xi, yi, xs, ys;     int Calcula_Perimetro();     int Calcula_Area()...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.ifsc.edu.br/index.php?title=Solucao_3_Exercicio_Retangulo&amp;diff=16143&amp;oldid=prev"/>
		<updated>2017-08-17T20:03:01Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039; #include &amp;lt;iostream&amp;gt;  #include &amp;lt;stdio.h&amp;gt;  //  using namespace std;  //  class Retangulo  { private:     int xi, yi, xs, ys;     int Calcula_Perimetro();     int Calcula_Area()...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt; #include &amp;lt;iostream&amp;gt;&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 //&lt;br /&gt;
 using namespace std;&lt;br /&gt;
 //&lt;br /&gt;
 class Retangulo&lt;br /&gt;
 { private:&lt;br /&gt;
    int xi, yi, xs, ys;&lt;br /&gt;
    int Calcula_Perimetro();&lt;br /&gt;
    int Calcula_Area();&lt;br /&gt;
  public:&lt;br /&gt;
      Retangulo(int =0, int =0, int=20, int =10); //construtor default = retangulo de 20 espaços de larg por 10 de altura&lt;br /&gt;
      void Desenha();&lt;br /&gt;
 };&lt;br /&gt;
 //&lt;br /&gt;
 Retangulo::Retangulo(int x1, int y1, int x2, int y2)&lt;br /&gt;
 {&lt;br /&gt;
     xi= x1;&lt;br /&gt;
     xs = x2;&lt;br /&gt;
     yi = y1;&lt;br /&gt;
     ys = y2;&lt;br /&gt;
  }&lt;br /&gt;
//&lt;br /&gt;
 int Retangulo::Calcula_Perimetro()&lt;br /&gt;
 {   int perim;&lt;br /&gt;
     if((xs &amp;gt; xi)&amp;amp;&amp;amp;(ys &amp;gt; yi))&lt;br /&gt;
        perim = 2*(xs - xi) + 2*(ys - yi);&lt;br /&gt;
     return perim;&lt;br /&gt;
 }&lt;br /&gt;
 //&lt;br /&gt;
 int Retangulo::Calcula_Area()&lt;br /&gt;
 { int area;&lt;br /&gt;
    if((xs &amp;gt; xi)&amp;amp;&amp;amp;(ys &amp;gt; yi))&lt;br /&gt;
      area = (xs - xi)*(ys - yi);&lt;br /&gt;
 }&lt;br /&gt;
 //&lt;br /&gt;
 void Retangulo::Desenha()&lt;br /&gt;
 { int i, j;&lt;br /&gt;
    if(xs &amp;gt; xi)&lt;br /&gt;
       cout &amp;lt;&amp;lt;  &amp;quot;largura do retangulo = &amp;quot; &amp;lt;&amp;lt;    (xs - xi) &amp;lt;&amp;lt;  endl;&lt;br /&gt;
    if(ys &amp;gt; yi)&lt;br /&gt;
        cout &amp;lt;&amp;lt;  &amp;quot;altura do retangulo = &amp;quot; &amp;lt;&amp;lt;    (ys - yi) &amp;lt;&amp;lt;  endl;&lt;br /&gt;
     cout &amp;lt;&amp;lt; &amp;quot;perimetro do retangulo =&amp;quot; &amp;lt;&amp;lt; Calcula_Perimetro() &amp;lt;&amp;lt; endl;&lt;br /&gt;
     cout &amp;lt;&amp;lt;  &amp;quot;area do retangulo = &amp;quot; &amp;lt;&amp;lt;    Calcula_Area() &amp;lt;&amp;lt; &amp;quot;\n\n\n&amp;quot;&amp;lt;&amp;lt; endl;&lt;br /&gt;
     printf(&amp;quot; &amp;quot;);&lt;br /&gt;
     for(i = 1; i&amp;lt; (xs - xi); i++)&lt;br /&gt;
        printf(&amp;quot;-&amp;quot;);&lt;br /&gt;
     for(j = 1;j &amp;lt; (ys - yi);j++)&lt;br /&gt;
    {  printf(&amp;quot;\n|&amp;quot;);&lt;br /&gt;
        for(i= 1; i&amp;lt; (xs - xi); i++)&lt;br /&gt;
            printf(&amp;quot; &amp;quot;);&lt;br /&gt;
       printf(&amp;quot;|&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
   printf(&amp;quot;\n &amp;quot;);&lt;br /&gt;
    for(i = 1; i&amp;lt; (xs - xi); i++)&lt;br /&gt;
        printf(&amp;quot;-&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    printf(&amp;quot;\n\n&amp;quot;);&lt;br /&gt;
 }&lt;br /&gt;
 //&lt;br /&gt;
 int main()&lt;br /&gt;
 {  Retangulo r1(12, 14, 20, 18), r2;&lt;br /&gt;
    r1.Desenha();&lt;br /&gt;
    r2.Desenha();&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>imported&gt;Fargoud</name></author>
	</entry>
</feed>