{"id":370,"date":"2023-09-09T15:11:10","date_gmt":"2023-09-09T15:11:10","guid":{"rendered":"https:\/\/javigomez.org\/?p=370"},"modified":"2025-09-29T20:34:09","modified_gmt":"2025-09-29T20:34:09","slug":"pseint-variables-y-operadores","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2023\/09\/09\/pseint-variables-y-operadores\/","title":{"rendered":"02. PSeInt &#8211; Variables y Operadores"},"content":{"rendered":"\n<p><strong>Escritura y l<\/strong><strong>ectura <\/strong><strong>de una variable por <\/strong><strong>teclado<\/strong><\/p>\n\n\n\n<p>El comando <strong>Escribir<\/strong> permite sacar por pantalla literales y valores de variables<\/p>\n\n\n\n<p>Existe el comando <strong>leer<\/strong> que pide por pantalla el valor de una variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2023\/09\/image-42-2-1-1.png\" alt=\"\" class=\"wp-image-373\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\ta=23\n\tescribir a\n\t\n\tnombre = \"Javi\"\n\tescribir nombre\nFinAlgoritmo\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\ta=23\n\tescribir a\n\t\n\tnombre = \"Javi\"\n\tescribir nombre\n\t\n\tdefinir var1 Como Real\n\tdefinir var2 Como Entero\n\tdefinir var3 Como Caracter\n\tdefinir var4 Como Logico\n\t\n\tvar1 = 4.5\n\tvar2 = 3\n\tvar3=\"cadena\"\n\tvar4=Verdadero\n\t\n\tescribir var1, var2, var3, var4\n\t\nFinAlgoritmo<\/code><\/pre>\n\n\n\n<p>Arrays Los arrays son estructuras de datos homog\u00e9neas (todos sus datos son del mismo tipo) que permiten almacenar un determinado n\u00famero de datos bajo un mismo identificador, para luego referirse a los mismos utilizando uno o m\u00e1s sub\u00edndices.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2023\/09\/image-42-4-1-1.png\" alt=\"\" class=\"wp-image-375\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\ta=5\n\tb=10\n\t\/\/realiza la suma\n\tc=a+b\n\tEscribir (c)\n\td=a>b\n\tEscribir (d) \/\/Falso\n\tEscribir (b>a y a&lt;c) \/\/Verdadero\n\tEscribir (b>a y a&lt;c) \/\/Verdadero\n\tEscribir (b>a y no (a&lt;c)) \/\/Falso\nFinAlgoritmo\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"PSeInt U01 02 Variables y Operadores\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/99j5oatIRP8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Escritura y lectura de una variable por teclado El comando Escribir permite sacar por pantalla literales y valores de variables Existe el comando leer que &hellip; <\/p>\n","protected":false},"author":1,"featured_media":376,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[247,271,272,340],"class_list":["post-370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pseint-pseudocodigo","tag-operadores","tag-pseint","tag-pseudocodigo","tag-variables"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/370\/revisions\/939"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/376"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}