Coloca éste Código entre el <HEAD> y </HEAD>
<script>
///////////////////////////////////////////////////////////////////////////
// LA CONFIGURACION INICIA AQUI
///////////////////////////////////////////////////////////////////////////
// Selecciona los colores (valores hexadecimales requeridos)
var colors=new Array("#FFFF00","#00FFFF","#5fc700","#854b00","#76e07c","#FFAC00",
"#FFFF66","#ff0000","#FFFFFF","#850044","#B56AFF","#56B1FF")
// Poner pausa entre colores (segundos)
var pausebetweencolors=2
// Que tipo de degradado aplicar.
// Set "none" or "horizontal" or "vertical"
var gradient_effect="horizontal"
// Set speed (higher=slower)
var speed=20
//Repeticiones
// Agregar valor entre 1 y 9999999
var i_loopmax=1000
///////////////////////////////////////////////////////////////////////////
// LA CONFIGURACION TERMINA AQUI
///////////////////////////////////////////////////////////////////////////
// NO MODIFICAR NADA DESDE AQUI
var pausesteps=40
var hexc = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F')
var redcol_1
var redcol_2
var redcol_1_b
var redcol_2_b
var greencol_1
var greencol_2
var greencol_1_b
var greencol_2_b
var bluecol_1
var bluecol_2
var bluecol_1_b
var bluecol_2_b
var rgbredfrom
var rgbgreenfrom
var rgbbluefrom
var rgbredto
var rgbgreento
var rgbblueto
var rgbrednow
var rgbgreennow
var rgbbluenow
var rgbredfrom_b
var rgbgreenfrom_b
var rgbbluefrom_b
var rgbredto_b
var rgbgreento_b
var rgbblueto_b
var rgbrednow_b
var rgbgreennow_b
var rgbbluenow_b
var colorhexafrom
var colorhexato
var i_step=1
var i_loop=0
var i_colorsA=0
var i_colorsB=1
var i_colorsC=1
var i_colorsD=2
pausebetweencolors*=1000
var browserinfos=navigator.userAgent
var ie4=document.all&&!document.getElementById
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)
var browserok=ie4||ie5||ns4||ns6||opera
function translateintorgb() {
var hexa=colors[i_colorsA]
var hexared=hexa.substring(1,3)
var hexagreen=hexa.substring(3,5)
var hexablue=hexa.substring(5,7)
rgbredfrom=parseInt("0x"+hexared)
rgbgreenfrom=parseInt("0x"+hexagreen)
rgbbluefrom=parseInt("0x"+hexablue)
rgbrednow=rgbredfrom
rgbgreennow=rgbgreenfrom
rgbbluenow=rgbbluefrom
var hexa=colors[i_colorsB]
var hexared=hexa.substring(1,3)
var hexagreen=hexa.substring(3,5)
var hexablue=hexa.substring(5,7)
rgbredto=parseInt("0x"+hexared)
rgbgreento=parseInt("0x"+hexagreen)
rgbblueto=parseInt("0x"+hexablue)
var hexa=colors[i_colorsC]
var hexared=hexa.substring(1,3)
var hexagreen=hexa.substring(3,5)
var hexablue=hexa.substring(5,7)
rgbredfrom_b=parseInt("0x"+hexared)
rgbgreenfrom_b=parseInt("0x"+hexagreen)
rgbbluefrom_b=parseInt("0x"+hexablue)
rgbrednow_b=rgbredfrom_b
rgbgreennow_b=rgbgreenfrom_b
rgbbluenow_b=rgbbluefrom_b
var hexa=colors[i_colorsD]
var hexared=hexa.substring(1,3)
var hexagreen=hexa.substring(3,5)
var hexablue=hexa.substring(5,7)
rgbredto_b=parseInt("0x"+hexared)
rgbgreento_b=parseInt("0x"+hexagreen)
rgbblueto_b=parseInt("0x"+hexablue)
i_colorsA++
i_colorsB++
i_colorsC++
i_colorsD++
if (i_colorsA>=colors.length) {i_colorsA=0}
if (i_colorsB>=colors.length) {i_colorsB=0}
if (i_colorsC>=colors.length) {i_colorsC=0}
if (i_colorsD>=colors.length) {i_colorsD=0}
changefromto()
}
function changefromto() {
rgbrednow=rgbrednow-((rgbredfrom-rgbredto)/speed)
rgbgreennow=rgbgreennow-((rgbgreenfrom-rgbgreento)/speed)
rgbbluenow=rgbbluenow-((rgbbluefrom-rgbblueto)/speed)
rgbrednow_b=rgbrednow_b-((rgbredfrom_b-rgbredto_b)/speed)
rgbgreennow_b=rgbgreennow_b-((rgbgreenfrom_b-rgbgreento_b)/speed)
rgbbluenow_b=rgbbluenow_b-((rgbbluefrom_b-rgbblueto_b)/speed)
if (rgbrednow>255) {rgbrednow=255}
if (rgbrednow<0) {rgbrednow=0}
if (rgbgreennow>255) {rgbgreennow=255}
if (rgbgreennow<0) {rgbgreennow=0}
if (rgbbluenow>255) {rgbbluenow=255}
if (rgbbluenow<0) {rgbbluenow=0}
if (rgbrednow_b>255) {rgbrednow_b=255}
if (rgbrednow_b<0) {rgbrednow_b=0}
if (rgbgreennow_b>255) {rgbgreennow_b=255}
if (rgbgreennow_b<0) {rgbgreennow_b=0}
if (rgbbluenow_b>255) {rgbbluenow_b=255}
if (rgbbluenow_b<0) {rgbbluenow_b=0}
if (i_step<=speed) {
redcol_1 = hexc[Math.floor(rgbrednow/16)];
redcol_2 = hexc[Math.floor(rgbrednow)%16];
greencol_1 = hexc[Math.floor(rgbgreennow/16)];
greencol_2 = hexc[Math.floor(rgbgreennow)%16];
bluecol_1 = hexc[Math.floor(rgbbluenow/16)];
bluecol_2 = hexc[Math.floor(rgbbluenow)%16];
redcol_1_b = hexc[Math.floor(rgbrednow_b/16)];
redcol_2_b = hexc[Math.floor(rgbrednow_b)%16];
greencol_1_b = hexc[Math.floor(rgbgreennow_b/16)];
greencol_2_b = hexc[Math.floor(rgbgreennow_b)%16];
bluecol_1_b = hexc[Math.floor(rgbbluenow_b/16)];
bluecol_2_b = hexc[Math.floor(rgbbluenow_b)%16];
var backcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1
+bluecol_2
var backcolor_b="#"+redcol_1_b+redcol_2_b+greencol_1_b+greencol_2_b
+bluecol_1_b+bluecol_2_b
if (ie5 && gradient_effect!="none") {
if (gradient_effect=="horizontal") {var gr_effect=1}
if (gradient_effect=="vertical") {var gr_effect=0}
document.body.style.filter=
"progid:DXImageTransform.Microsoft.Gradient(startColorstr="+backcolor+", endColorstr="+backcolor_b+", GradientType="+gr_effect+")"
}
else {
document.bgColor=backcolor
}
i_step++
var timer=setTimeout("changefromto()",pausesteps);
}
else {
clearTimeout(timer)
i_step=1
i_loop++
if (i_loop<i_loopmax) {var timer=setTimeout("translateintorgb()",pausebetweencolors);}
}
}
if (bowserok) {
window.onload=translateintorgb
}
</script>
Mostrando entradas con la etiqueta javascript. Mostrar todas las entradas
Mostrando entradas con la etiqueta javascript. Mostrar todas las entradas
martes, 14 de julio de 2015
JAVASCRIPT: Crear una Agenda de Direcciones con COOKIES
Colocar Entre el <HEAD> y </HEAD>
<SCRIPT LANGUAGE="JavaScript">
var arrRecords = new Array();
var arrCookie = new Array();
var recCount = 0;
var strRecord="";
expireDate = new Date;
expireDate.setDate(expireDate.getDate()+365);
function cookieVal(cookieName) {
thisCookie = document.cookie.split("; ")
for (i = 0; i < thisCookie.length; i++) {
if (cookieName == thisCookie[i].split("=")[0]) {
return thisCookie[i].split("=")[1];
}
}
return 0;
}
function loadCookie() {
if(document.cookie != "") {
if(cookieVal("Records") != ""){
arrRecords = cookieVal("Records").split(",");
}
currentRecord();
}
}
function setRec() {
strRecord = "";
for(i = 0; i < document.frm1.elements.length; i++) {
strRecord = strRecord + document.frm1.elements[i].value + ":";
}
arrRecords[recCount] = strRecord;
document.frm2.add.value = " NEW ";
document.cookie = "Records="+arrRecords+";expires=" + expireDate.toGMTString();
}
function newRec() {
switch (document.frm2.add.value) {
case " NEW " :
varTemp = recCount;
for(i = 0; i < document.frm1.elements.length; i++) {
document.frm1.elements[i].value = ""
}
recCount = arrRecords.length;
document.frm2.add.value = "CANCEL";
break;
case "CANCEL" :
recCount = varTemp;
document.frm2.add.value = " NEW ";
currentRecord();
break;
}
}
function countRecords() {
document.frm2.actual.value = "Record " + (recCount+1)+"; "+arrRecords.length+" saved records";
}
function delRec() {
arrRecords.splice(recCount,1);
navigate("previous");
setRec();
}
function currentRecord() {
if (arrRecords.length != "") {
strRecord = arrRecords[recCount];
currRecord = strRecord.split(":");
for(i = 0; i < document.frm1.elements.length; i++) {
document.frm1.elements[i].value = currRecord[i];
}
}
}
function navigate(control) {
switch (control) {
case "first" :
recCount = 0;
currentRecord();
document.frm2.add.value = " NEW ";
break;
case "last" :
recCount = arrRecords.length - 1;
currentRecord();
document.frm2.add.value = " NEW ";
break;
case "next" :
if (recCount < arrRecords.length - 1) {
recCount = recCount + 1;
currentRecord();
document.frm2.add.value = " NEW ";
}
break;
case "previous" :
if (recCount > 0) {
recCount = recCount - 1;
currentRecord();
}
document.frm2.add.value = " NEW ";
break;
default:
}
}
function pageLoad(){
if (!Array.prototype.splice) {
function array_splice(ind,cnt) {
if (arguments.length == 0) return ind;
if (typeof ind != "number") ind = 0;
if (ind < 0) ind = Math.max(0,this.length + ind);
if (ind > this.length) {
if (arguments.length > 2) ind = this.length;
else return [];
}
if (arguments.length < 2) cnt = this.length-ind;
cnt = (typeof cnt == "number") ? Math.max(0,cnt) : 0;
removeArray = this.slice(ind,ind+cnt);
endArray = this.slice(ind+cnt);
this.length = ind;
for (var i = 2; i < arguments.length; i++) {
this[this.length] = arguments[i];
}
for(var i = 0; i < endArray.length; i++) {
this[this.length] = endArray[i];
}
return removeArray;
}
Array.prototype.splice = array_splice;
}
recCount = 0;
loadCookie();
countRecords();
}
</script>
Colocar dentro del Tag <BODY> ejemplo <Body onLoad="pageLoad()">
Colocar entre el <BODY> y </BODY>
<center>
<form name="frm1">
<table align="center" resize="none" border="0">
<tr>
<td align="right">Name:</td>
<td colspan="5"><input type="box" name="name" size="49"></td>
</tr>
<tr>
<td align="right">Address:</td><td colspan="5"><input type="box" name="address" size="49"></td></tr>
<td align="right">Address 2:</td><td colspan="5" align="left"><input type="box" name="address2" size="49"></td>
</tr>
<tr>
<td align="right">City:</td>
<td><input type="box" name="city" size="15"></td>
<td>State:</td><td><input type="box" name="state" size="15"></td>
<td>Zip:</td><td><input type="box" size="6" name="zip"></td>
</tr>
<tr>
<td align="right">Phone:</td>
<td align="left"><input type="box" name="phone" size="15"></td>
<td align="right">Fax:</td><td align="left"><input type="box" name="fax" size="15"></td>
</tr>
<tr>
<td align="right">Web Page:<td colspan="5" align="left"><input type="box" name="address" size="49"></td>
</tr>
<tr>
<td align="right">E-Mail:<td colspan="5" align="left"><input type="box" name="email" size="49"></td>
</tr>
<tr>
<td align="right" valign="top">Comments:</td>
<td colspan="5" align="left"><input type="box" name="comment1" size="49"><br>
<input type="box" name="comment2" size="49"><br>
<input type="box" name="comment3" size="49"><br>
<input type="box" name="comment4" size="49"><br>
<input type="box" name="comment5" size="49">
</td>
</tr>
</table>
</form>
<form name="frm2">
<table align="center" border="1" resize="none">
<tr>
<td align="center">
<input type="button" name="first" value="|<< " onClick="navigate('first');countRecords()">
<input type="button" name="previous" value=" < " onClick="navigate('previous');countRecords()">
<input type="button" name="next" value=" > " onClick="navigate('next');countRecords()">
<input type="button" name="last" value=" >>|" onClick="navigate('last');countRecords()">
<input type="box" name="actual" size=30>
</td>
</tr>
<tr>
<td align="center">
<input type="button" name="add" value=" NEW " onClick="newRec();countRecords()">
<input type="button" name="set" value="SAVE RECORD" onClick="setRec();countRecords()">
<input type="button" name="del" value="Delete" onClick="delRec();countRecords()">
</td>
</tr>
</table>
</form>
</center>
<SCRIPT LANGUAGE="JavaScript">
var arrRecords = new Array();
var arrCookie = new Array();
var recCount = 0;
var strRecord="";
expireDate = new Date;
expireDate.setDate(expireDate.getDate()+365);
function cookieVal(cookieName) {
thisCookie = document.cookie.split("; ")
for (i = 0; i < thisCookie.length; i++) {
if (cookieName == thisCookie[i].split("=")[0]) {
return thisCookie[i].split("=")[1];
}
}
return 0;
}
function loadCookie() {
if(document.cookie != "") {
if(cookieVal("Records") != ""){
arrRecords = cookieVal("Records").split(",");
}
currentRecord();
}
}
function setRec() {
strRecord = "";
for(i = 0; i < document.frm1.elements.length; i++) {
strRecord = strRecord + document.frm1.elements[i].value + ":";
}
arrRecords[recCount] = strRecord;
document.frm2.add.value = " NEW ";
document.cookie = "Records="+arrRecords+";expires=" + expireDate.toGMTString();
}
function newRec() {
switch (document.frm2.add.value) {
case " NEW " :
varTemp = recCount;
for(i = 0; i < document.frm1.elements.length; i++) {
document.frm1.elements[i].value = ""
}
recCount = arrRecords.length;
document.frm2.add.value = "CANCEL";
break;
case "CANCEL" :
recCount = varTemp;
document.frm2.add.value = " NEW ";
currentRecord();
break;
}
}
function countRecords() {
document.frm2.actual.value = "Record " + (recCount+1)+"; "+arrRecords.length+" saved records";
}
function delRec() {
arrRecords.splice(recCount,1);
navigate("previous");
setRec();
}
function currentRecord() {
if (arrRecords.length != "") {
strRecord = arrRecords[recCount];
currRecord = strRecord.split(":");
for(i = 0; i < document.frm1.elements.length; i++) {
document.frm1.elements[i].value = currRecord[i];
}
}
}
function navigate(control) {
switch (control) {
case "first" :
recCount = 0;
currentRecord();
document.frm2.add.value = " NEW ";
break;
case "last" :
recCount = arrRecords.length - 1;
currentRecord();
document.frm2.add.value = " NEW ";
break;
case "next" :
if (recCount < arrRecords.length - 1) {
recCount = recCount + 1;
currentRecord();
document.frm2.add.value = " NEW ";
}
break;
case "previous" :
if (recCount > 0) {
recCount = recCount - 1;
currentRecord();
}
document.frm2.add.value = " NEW ";
break;
default:
}
}
function pageLoad(){
if (!Array.prototype.splice) {
function array_splice(ind,cnt) {
if (arguments.length == 0) return ind;
if (typeof ind != "number") ind = 0;
if (ind < 0) ind = Math.max(0,this.length + ind);
if (ind > this.length) {
if (arguments.length > 2) ind = this.length;
else return [];
}
if (arguments.length < 2) cnt = this.length-ind;
cnt = (typeof cnt == "number") ? Math.max(0,cnt) : 0;
removeArray = this.slice(ind,ind+cnt);
endArray = this.slice(ind+cnt);
this.length = ind;
for (var i = 2; i < arguments.length; i++) {
this[this.length] = arguments[i];
}
for(var i = 0; i < endArray.length; i++) {
this[this.length] = endArray[i];
}
return removeArray;
}
Array.prototype.splice = array_splice;
}
recCount = 0;
loadCookie();
countRecords();
}
</script>
Colocar dentro del Tag <BODY> ejemplo <Body onLoad="pageLoad()">
Colocar entre el <BODY> y </BODY>
<center>
<form name="frm1">
<table align="center" resize="none" border="0">
<tr>
<td align="right">Name:</td>
<td colspan="5"><input type="box" name="name" size="49"></td>
</tr>
<tr>
<td align="right">Address:</td><td colspan="5"><input type="box" name="address" size="49"></td></tr>
<td align="right">Address 2:</td><td colspan="5" align="left"><input type="box" name="address2" size="49"></td>
</tr>
<tr>
<td align="right">City:</td>
<td><input type="box" name="city" size="15"></td>
<td>State:</td><td><input type="box" name="state" size="15"></td>
<td>Zip:</td><td><input type="box" size="6" name="zip"></td>
</tr>
<tr>
<td align="right">Phone:</td>
<td align="left"><input type="box" name="phone" size="15"></td>
<td align="right">Fax:</td><td align="left"><input type="box" name="fax" size="15"></td>
</tr>
<tr>
<td align="right">Web Page:<td colspan="5" align="left"><input type="box" name="address" size="49"></td>
</tr>
<tr>
<td align="right">E-Mail:<td colspan="5" align="left"><input type="box" name="email" size="49"></td>
</tr>
<tr>
<td align="right" valign="top">Comments:</td>
<td colspan="5" align="left"><input type="box" name="comment1" size="49"><br>
<input type="box" name="comment2" size="49"><br>
<input type="box" name="comment3" size="49"><br>
<input type="box" name="comment4" size="49"><br>
<input type="box" name="comment5" size="49">
</td>
</tr>
</table>
</form>
<form name="frm2">
<table align="center" border="1" resize="none">
<tr>
<td align="center">
<input type="button" name="first" value="|<< " onClick="navigate('first');countRecords()">
<input type="button" name="previous" value=" < " onClick="navigate('previous');countRecords()">
<input type="button" name="next" value=" > " onClick="navigate('next');countRecords()">
<input type="button" name="last" value=" >>|" onClick="navigate('last');countRecords()">
<input type="box" name="actual" size=30>
</td>
</tr>
<tr>
<td align="center">
<input type="button" name="add" value=" NEW " onClick="newRec();countRecords()">
<input type="button" name="set" value="SAVE RECORD" onClick="setRec();countRecords()">
<input type="button" name="del" value="Delete" onClick="delRec();countRecords()">
</td>
</tr>
</table>
</form>
</center>
HTML: Buen Script si quieres poner un Color de Fondo Degradado a tu Página
Colocar dentro del <BODY >
Código:
style="filter:progid:DXImageTransform.Microsoft.Gradient( endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');"
Ejemplo:
<body style="filter:progid:DXImageTransform.Microsoft.Gradient( endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');" >
Código:
style="filter:progid:DXImageTransform.Microsoft.Gradient( endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');"
Ejemplo:
<body style="filter:progid:DXImageTransform.Microsoft.Gradient( endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');" >
Calculadora en Consola C# (C Sharp)
namespace parcial
{
class examen
{
static void Main(string[] args)
{
Console.Title = "Calculadora";
Console.SetCursorPosition(55, 5);
Console.Write(" : Negro");
Console.SetCursorPosition(55, 6);
Console.Write(" : Blanco");
Console.SetCursorPosition(55, 7);
Console.Write(" : Amarillo");
Console.SetCursorPosition(55, 8);
Console.Write(" : Rojo");
Console.SetCursorPosition(55, 9);
Console.Write(" : Verde");
fondo();
Console.SetCursorPosition(55, 20);
Console.Write("/1/ : Muy pequeño");
Console.SetCursorPosition(55, 21);
Console.Write("/2/ : Pequeño");
Console.SetCursorPosition(55, 22);
Console.Write("/3/ : Normal");
Console.SetCursorPosition(55, 23);
Console.Write("/4/ : Mediano");
Console.SetCursorPosition(55, 24);
Console.Write("/5/ : Grande");
tamaño();
Console.SetCursorPosition(3, 2);
int a = ingreso();
Console.SetCursorPosition(3, 3);
int b = ingreso();
Console.SetCursorPosition(55, 2);
Console.Write("(+) : suma");
Console.SetCursorPosition(55, 4);
Console.Write("(-) : resta");
Console.SetCursorPosition(55, 6);
Console.Write("(*) : multiplicacion");
Console.SetCursorPosition(55, 8);
Console.Write("(/) : division");
Console.SetCursorPosition(3, 5);
Console.Write("===========================");
Console.SetCursorPosition(3, 11);
Console.Write("===========================");
Console.SetCursorPosition(3,6);
Console.Write("operacion");
operaciones(a, b);
Console.ReadKey();
}
static int ingreso()
{
Console.Write("Ingrese el numero--> ");
int n = Int16.Parse(Console.ReadLine());
return n;
}
static void operaciones(int x, int y)
{
Console.SetCursorPosition(25, 6);
string z = Console.ReadLine();
switch (z)
{
case "+":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x + y);
resultado();
break;
case "-":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x - y);
resultado();
break;
case "*":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x * y);
resultado();
break;
case "/":
Console.SetCursorPosition(25, 9);
Console.Write("{0:0.00}", x / y);
resultado();
break;
default:
Console.Write("Error");
break;
}
}
static void fondo()
{
Console.SetCursorPosition(3, 5);
Console.Write("¡CAMBIA EL COLOR DE FONDO!^^----> ");
char f = char.Parse(Console.ReadLine());
switch (f)
{
case 'N':
Console.BackgroundColor = ConsoleColor.Black;
Console.Clear();
break;
case 'B':
Console.BackgroundColor = ConsoleColor.White;
Console.Clear();
break;
case 'A':
Console.BackgroundColor = ConsoleColor.Yellow;
Console.Clear();
break;
case 'R':
Console.BackgroundColor = ConsoleColor.Red;
Console.Clear();
break;
case 'V':
Console.BackgroundColor = ConsoleColor.DarkGreen;
Console.Clear();
break;
default:
Console.Write("Error");
break;
}
}
static void tamaño()
{
Console.SetCursorPosition(3, 18);
Console.Write("¡VAMOS..AGRANDA O ACHICA!^^----> ");
string t = Console.ReadLine();
switch (t)
{
case "1":
Console.SetWindowSize(5,10);
Console.Clear();
break;
case "2":
Console.SetWindowSize(10,20);
Console.Clear();
break;
case "3":
Console.SetWindowSize(15,25);
Console.Clear();
break;
case "4":
Console.SetWindowSize(25,35);
Console.Clear();
break;
case "5":
Console.SetWindowSize(50,59);
Console.Clear();
break;
default:
Console.Write("Error");
break;
}
}
static void resultado()
{
Console.SetCursorPosition(3, 9);
Console.Write("RESULTADO");
int res = Int16.Parse(Console.ReadLine());
}
}
}
{
class examen
{
static void Main(string[] args)
{
Console.Title = "Calculadora";
Console.SetCursorPosition(55, 5);
Console.Write(" : Negro");
Console.SetCursorPosition(55, 6);
Console.Write(" : Blanco");
Console.SetCursorPosition(55, 7);
Console.Write(" : Amarillo");
Console.SetCursorPosition(55, 8);
Console.Write(" : Rojo");
Console.SetCursorPosition(55, 9);
Console.Write(" : Verde");
fondo();
Console.SetCursorPosition(55, 20);
Console.Write("/1/ : Muy pequeño");
Console.SetCursorPosition(55, 21);
Console.Write("/2/ : Pequeño");
Console.SetCursorPosition(55, 22);
Console.Write("/3/ : Normal");
Console.SetCursorPosition(55, 23);
Console.Write("/4/ : Mediano");
Console.SetCursorPosition(55, 24);
Console.Write("/5/ : Grande");
tamaño();
Console.SetCursorPosition(3, 2);
int a = ingreso();
Console.SetCursorPosition(3, 3);
int b = ingreso();
Console.SetCursorPosition(55, 2);
Console.Write("(+) : suma");
Console.SetCursorPosition(55, 4);
Console.Write("(-) : resta");
Console.SetCursorPosition(55, 6);
Console.Write("(*) : multiplicacion");
Console.SetCursorPosition(55, 8);
Console.Write("(/) : division");
Console.SetCursorPosition(3, 5);
Console.Write("===========================");
Console.SetCursorPosition(3, 11);
Console.Write("===========================");
Console.SetCursorPosition(3,6);
Console.Write("operacion");
operaciones(a, b);
Console.ReadKey();
}
static int ingreso()
{
Console.Write("Ingrese el numero--> ");
int n = Int16.Parse(Console.ReadLine());
return n;
}
static void operaciones(int x, int y)
{
Console.SetCursorPosition(25, 6);
string z = Console.ReadLine();
switch (z)
{
case "+":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x + y);
resultado();
break;
case "-":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x - y);
resultado();
break;
case "*":
Console.SetCursorPosition(25, 9);
Console.Write("{0}", x * y);
resultado();
break;
case "/":
Console.SetCursorPosition(25, 9);
Console.Write("{0:0.00}", x / y);
resultado();
break;
default:
Console.Write("Error");
break;
}
}
static void fondo()
{
Console.SetCursorPosition(3, 5);
Console.Write("¡CAMBIA EL COLOR DE FONDO!^^----> ");
char f = char.Parse(Console.ReadLine());
switch (f)
{
case 'N':
Console.BackgroundColor = ConsoleColor.Black;
Console.Clear();
break;
case 'B':
Console.BackgroundColor = ConsoleColor.White;
Console.Clear();
break;
case 'A':
Console.BackgroundColor = ConsoleColor.Yellow;
Console.Clear();
break;
case 'R':
Console.BackgroundColor = ConsoleColor.Red;
Console.Clear();
break;
case 'V':
Console.BackgroundColor = ConsoleColor.DarkGreen;
Console.Clear();
break;
default:
Console.Write("Error");
break;
}
}
static void tamaño()
{
Console.SetCursorPosition(3, 18);
Console.Write("¡VAMOS..AGRANDA O ACHICA!^^----> ");
string t = Console.ReadLine();
switch (t)
{
case "1":
Console.SetWindowSize(5,10);
Console.Clear();
break;
case "2":
Console.SetWindowSize(10,20);
Console.Clear();
break;
case "3":
Console.SetWindowSize(15,25);
Console.Clear();
break;
case "4":
Console.SetWindowSize(25,35);
Console.Clear();
break;
case "5":
Console.SetWindowSize(50,59);
Console.Clear();
break;
default:
Console.Write("Error");
break;
}
}
static void resultado()
{
Console.SetCursorPosition(3, 9);
Console.Write("RESULTADO");
int res = Int16.Parse(Console.ReadLine());
}
}
}
lunes, 13 de julio de 2015
C# - Calculadora sencilla usando Metodos
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using c = System.Console;
/* Para más códigos visita www.zvipuapica.blogspot.com , KEHACKSOFT */
namespace ConsoleApplication1
{
class Program
{
static void Main()
{
c.Title="Calculadora Sencilla Usando Metodos";
string s=signo();
int n1=ingreso();/*Igualamos el valor que toma
el método Ingreso() y lo asignamos a Una variable n1*/
int n2 = ingreso();/*Igualamos el valor que toma
el método Ingreso() y lo asignamos a Una variable n2*/
operacion(n1,n2,s);
denuevo();
c.ReadKey();
}
static int ingreso()
{
c.WriteLine("Ingresa un Numero");
int num = int.Parse(c.ReadLine());
return num;/*devolvemos el valor leido desde consola al metodo.
*/
}
static string signo()
{
c.WriteLine("Ingresa Una Operacion: + - * /");
string d=c.ReadLine();
return d;
}
static void operacion(int a, int b, string t)
{
switch (t)
{
case "+":
c.WriteLine("El resultado es: {0}", a + b);
break;
case "-":
c.WriteLine("El resultado es: {0}", a - b);
break;
case "*":
c.WriteLine("El resultado es: {0}", a * b);
break;
case "/":
c.WriteLine("El resultado es: {0}", a / b);
break;
default:
c.WriteLine(" ");
c.WriteLine(" ");
c.Write("¡¡¡Error!!!");
c.WriteLine(" ");
c.WriteLine(" ");
break;
}
}
static void denuevo()
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("Desea Hacer Otra Operacion: 1=Si 2=No");
string rsp=c.ReadLine();
if (rsp == "1")
{
Main();
}
else if (rsp != "1" && rsp != "2")
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("¡¡Error Introdusca Una opcion valida..!!");
denuevo();
}
else
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("Gracias por Usar esta calculadora");
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using c = System.Console;
/* Para más códigos visita www.zvipuapica.blogspot.com , KEHACKSOFT */
namespace ConsoleApplication1
{
class Program
{
static void Main()
{
c.Title="Calculadora Sencilla Usando Metodos";
string s=signo();
int n1=ingreso();/*Igualamos el valor que toma
el método Ingreso() y lo asignamos a Una variable n1*/
int n2 = ingreso();/*Igualamos el valor que toma
el método Ingreso() y lo asignamos a Una variable n2*/
operacion(n1,n2,s);
denuevo();
c.ReadKey();
}
static int ingreso()
{
c.WriteLine("Ingresa un Numero");
int num = int.Parse(c.ReadLine());
return num;/*devolvemos el valor leido desde consola al metodo.
*/
}
static string signo()
{
c.WriteLine("Ingresa Una Operacion: + - * /");
string d=c.ReadLine();
return d;
}
static void operacion(int a, int b, string t)
{
switch (t)
{
case "+":
c.WriteLine("El resultado es: {0}", a + b);
break;
case "-":
c.WriteLine("El resultado es: {0}", a - b);
break;
case "*":
c.WriteLine("El resultado es: {0}", a * b);
break;
case "/":
c.WriteLine("El resultado es: {0}", a / b);
break;
default:
c.WriteLine(" ");
c.WriteLine(" ");
c.Write("¡¡¡Error!!!");
c.WriteLine(" ");
c.WriteLine(" ");
break;
}
}
static void denuevo()
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("Desea Hacer Otra Operacion: 1=Si 2=No");
string rsp=c.ReadLine();
if (rsp == "1")
{
Main();
}
else if (rsp != "1" && rsp != "2")
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("¡¡Error Introdusca Una opcion valida..!!");
denuevo();
}
else
{
c.WriteLine(" ");
c.WriteLine(" ");
c.WriteLine("Gracias por Usar esta calculadora");
}
}
}
}
C# - Registro de Notas Usando Arrays
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/*Para más códigos visita www.zvipuapica.blogspot.com, KEHACKSOFT */
/*using c = System.Console;*/
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Title="Registrando Notas…!";
Console.BackgroundColor=ConsoleColor.Red;
Console.ForegroundColor=ConsoleColor.Yellow;
Console.Clear();
int cont=0; string s=" "; string p=" ";
inicio(ref p, ref s, ref cont);
int[] num=new int[cont];
string[] alumnos=new string[cont];
float[]parcial=new float[cont];
float[]pfinal=new float[cont];
float[]promedio=new float[cont];
string[] estado=new string[cont];
ingreso(ref alumnos, ref parcial, ref pfinal);
promov(ref promedio, ref estado, ref parcial, ref pfinal, ref num);
Console.Clear();
salida(p,s,num,alumnos,parcial,pfinal,promedio,estado);
Console.ReadKey();
}
static void inicio(ref string nd, ref string nc, ref int na)
{
Console.WriteLine("Nombre del Docente");
nd=Console.ReadLine();
Console.WriteLine("Nombre de la Asignatura");
nc=Console.ReadLine();
Console.WriteLine("Número de Alumnos");
na=Int16.Parse(Console.ReadLine());
Console.Clear();
}
static void ingreso(ref string[] h, ref float[]a, ref float[]r)
{
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine("Nombre del Alumno");
h[i] =Console.ReadLine();
Console.WriteLine("Nota del Parcial");
a[i] =float.Parse(Console.ReadLine());
Console.WriteLine("Nota del Parcial Final");
r[i] =float.Parse(Console.ReadLine());
Console.Clear();
}
}
static void promov(ref float[] z, ref string[] x, ref float[] c, ref float[]v, ref int[]b)
{
for (int i=0; i {
b[i]=i+1;
}
for(int i=0; i {
z[i]=(c[i]+v[i])/2;
for (int k=0; k {
if (z[k]<10 .5="" br=""> x[k]="Desaprobado";
else
x[k]="Aprobado";
}
}
}
static void salida(string a, string s, int[] d, string[] f, float[] g, float[] h, float[] j, string[] k)
{
Console.WriteLine("Nombre del Docente: {0}", a);
Console.WriteLine("Nombre del curso: {0}", s);
Console.SetCursorPosition(0,3);
Console.Write("Numero");
Console.SetCursorPosition(7,3);
Console.Write("Alumno");
Console.SetCursorPosition(32,3);
Console.Write("Parcial");
Console.SetCursorPosition(40,3);
Console.Write("Parcial-Final");
Console.SetCursorPosition(54,3);
Console.Write("Promedio");
Console.SetCursorPosition(65,3);
Console.Write("Estado");
for (int i=0; i {
Console.SetCursorPosition(1, i+5);
Console.WriteLine(d[i]);
Console.SetCursorPosition(12, i + 5);
Console.WriteLine(f[i]);
Console.SetCursorPosition(35, i + 5);
Console.WriteLine(g[i]);
Console.SetCursorPosition(46, i + 5);
Console.WriteLine(h[i]);
Console.SetCursorPosition(56, i + 5);
Console.WriteLine(j[i]);
Console.SetCursorPosition(65, i + 5);
Console.WriteLine(k[i]);
}
}
}
} 10>
using System.Collections.Generic;
using System.Linq;
using System.Text;
/*Para más códigos visita www.zvipuapica.blogspot.com, KEHACKSOFT */
/*using c = System.Console;*/
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Title="Registrando Notas…!";
Console.BackgroundColor=ConsoleColor.Red;
Console.ForegroundColor=ConsoleColor.Yellow;
Console.Clear();
int cont=0; string s=" "; string p=" ";
inicio(ref p, ref s, ref cont);
int[] num=new int[cont];
string[] alumnos=new string[cont];
float[]parcial=new float[cont];
float[]pfinal=new float[cont];
float[]promedio=new float[cont];
string[] estado=new string[cont];
ingreso(ref alumnos, ref parcial, ref pfinal);
promov(ref promedio, ref estado, ref parcial, ref pfinal, ref num);
Console.Clear();
salida(p,s,num,alumnos,parcial,pfinal,promedio,estado);
Console.ReadKey();
}
static void inicio(ref string nd, ref string nc, ref int na)
{
Console.WriteLine("Nombre del Docente");
nd=Console.ReadLine();
Console.WriteLine("Nombre de la Asignatura");
nc=Console.ReadLine();
Console.WriteLine("Número de Alumnos");
na=Int16.Parse(Console.ReadLine());
Console.Clear();
}
static void ingreso(ref string[] h, ref float[]a, ref float[]r)
{
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine("Nombre del Alumno");
h[i] =Console.ReadLine();
Console.WriteLine("Nota del Parcial");
a[i] =float.Parse(Console.ReadLine());
Console.WriteLine("Nota del Parcial Final");
r[i] =float.Parse(Console.ReadLine());
Console.Clear();
}
}
static void promov(ref float[] z, ref string[] x, ref float[] c, ref float[]v, ref int[]b)
{
for (int i=0; i {
b[i]=i+1;
}
for(int i=0; i
z[i]=(c[i]+v[i])/2;
for (int k=0; k
if (z[k]<10 .5="" br=""> x[k]="Desaprobado";
else
x[k]="Aprobado";
}
}
}
static void salida(string a, string s, int[] d, string[] f, float[] g, float[] h, float[] j, string[] k)
{
Console.WriteLine("Nombre del Docente: {0}", a);
Console.WriteLine("Nombre del curso: {0}", s);
Console.SetCursorPosition(0,3);
Console.Write("Numero");
Console.SetCursorPosition(7,3);
Console.Write("Alumno");
Console.SetCursorPosition(32,3);
Console.Write("Parcial");
Console.SetCursorPosition(40,3);
Console.Write("Parcial-Final");
Console.SetCursorPosition(54,3);
Console.Write("Promedio");
Console.SetCursorPosition(65,3);
Console.Write("Estado");
for (int i=0; i
Console.SetCursorPosition(1, i+5);
Console.WriteLine(d[i]);
Console.SetCursorPosition(12, i + 5);
Console.WriteLine(f[i]);
Console.SetCursorPosition(35, i + 5);
Console.WriteLine(g[i]);
Console.SetCursorPosition(46, i + 5);
Console.WriteLine(h[i]);
Console.SetCursorPosition(56, i + 5);
Console.WriteLine(j[i]);
Console.SetCursorPosition(65, i + 5);
Console.WriteLine(k[i]);
}
}
}
}
domingo, 12 de julio de 2015
Estamos de Vuelta!
Aviso Importante: Este Blog es un Proyecto Beneficioso para Jóvenes, Técnicos e Ingenieros .
Mediante nuestros aportes hemos podido observar una evolución referente al interés de incorporarse más usuarios en el mundo de la Programación Digital.
Por tanto hemos decidido retomar las innovaciones que habrían sido descontinuadas.
Desde luego, podrás comentarnos tus dudas o aportes.
Todos los códigos son de nuestra propiedad intelectual. No pirateamos.
Aquí encontraras la forma de iniciarte en el mundo de la programación digital, un mundo fascinante y extraordinario.
Proyectos Universitarios de Programación Digital.
Los códigos son totalmente Gratis.
Apoyanos, haz una pequeña donación Voluntaria (PayPal) para mantenernos vigentes.
Somos Estudiantes de Ingeniería de Sistemas e Informática y necesitamos tu apoyo.
Gracias.
miércoles, 15 de septiembre de 2010
JAVA Netbeans: Area y Perimetro de un Triangulo Isoseles
Aporte de : Isamar
-->
-->
package triangulo_isoceles;
import java.util.Scanner;
/**
*
* @author Isamar
*/
class Triangulo_isoceles {
double LadoMayor;//base
double Lado1;//lado igual 1
double Lado2;//lado igual 2
Triangulo_isoceles(double LM, double Lm)
{
LadoMayor = LM;
Lado1= Lm;
Lado2= Lm;
}
public double Calcula_Perimetro()
{
double perimetro;
perimetro = LadoMayor + (2*Lado1);//perimetro
return perimetro;
}
public double Calcula_Area()
{
double Area;
double Altura;
Altura=Math.sqrt(Math.pow(Lado1, 2)-Math.pow((LadoMayor/2),2));
Area=(LadoMayor*Altura)/2;
return Area;
}
}
public class Aplicacion {
public static void main(String[] args) {
double LMayor;
double Lmenor;
int opc;
Scanner leer=new Scanner(System.in);
do{
System.out.println("Atencion: Los lados equilateros sumados deben ser mayor que la base");
System.out.println("Ingrese la longitud del lado mayor del triangulo: ");
LMayor= leer.nextDouble();
System.out.println("Ingrese la longitud de los lados equilateros:");
Lmenor=leer.nextDouble();
}
while(LMayor> Lmenor+Lmenor || Lmenor + LMayor
Triangulo_isoceles T= new Triangulo_isoceles(LMayor,Lmenor);
do{
System.out.println("---------MENU--------");
System.out.println("[1] Modificar la longitud de los lados.");
System.out.println("[2] Mostrar el perimetro del triangulo.");
System.out.println("[3] Mostrar el area del triangulo");
System.out.println("[4] Salir");
opc=leer.nextInt();
switch(opc)
{
case 1:
{
do{
System.out.println("Atencion: Los lados equilateros sumados deben ser mayor que la base");
System.out.println("Ingrese la longitud del lado mayor del triangulo: ");
T.LadoMayor= leer.nextDouble();
System.out.println("Ingrese la longitud de los lados equilateros:");
T.Lado1=leer.nextDouble();
T.Lado2=T.Lado1;
}while(T.LadoMayor>T.Lado1+T.Lado2 || T.LadoMayor + T.Lado1
break;
}
case 2:
{
System.out.println("El perimetro del triangulo es: "+T.Calcula_Perimetro());
break;
}
case 3:
{
System.out.println("El area del triangulo es: "+ T.Calcula_Area());
break;
}
case 4:
{
break;
}
default:
{
System.out.println("Error, opcion incorrecta");
break;
}
}
}while (opc != 4);
}
}
martes, 14 de septiembre de 2010
JAVA Netbeans: Que tipo de triangulo es solo x sus Lados? y calcular area y perimetro del triangulo Isoseles
Aqui les dejo mi Codigo Fuente:::
He creado 5 clases están enumeradas...!
1.- Work (Main)
package trabajo;
/**
*
* @author KEHACKSOFT
*/
public class work {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
ingresodatos ing=new ingresodatos();
ing.ingreso();
triangulo_isoseles obj=new triangulo_isoseles(ing.getladoA(),ing.getladoB(),ing.getladoC());
obj.triangulo();
}
}
2.- IngresaDatos
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class ingresodatos {
int a,b,c;
void ingreso()
{
c=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO C (BASE): ",""));
a=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO A: ",""));
b=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO B: ",""));
}
public int getladoA()
{
return a;
}
public int getladoB()
{
return b;
}
public int getladoC()
{
return c;
}
}
3.- triangulo_isoseles
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author kEHCKSOFT
*/
public class triangulo_isoseles {
//public int catetoA,catetoB,
public double a, b, c; // tamaño de los lados
public double A, B, C; // angulos
public double suma;
//MI CONSTRUCTOR
triangulo_isoseles(int LadoA,int LadoB,int LadoC)
{
a=LadoA;
b=LadoB;
c=LadoC;
}
void triangulo()
{
A = Math.acos( (b * b + c * c - a * a) / (2 * b * c)) * 180 / Math.PI;
B = Math.acos( (a * a + c * c - b * b) / (2 * a * c)) * 180 / Math.PI;
C = Math.acos( (a * a + b * b - c * c) / (2 * a * b)) * 180 / Math.PI;
suma = A + B + C;
JOptionPane.showMessageDialog(null,"Los lados son = [ " + a + ", " + b + ", " +c + "]\n "
+ "Los angulos son = [ " + A + ", " + B + ", " +C + "]\n"
+"La suma de sus angulos es = " + suma);
if (A != B && B != C && C != A)
JOptionPane.showMessageDialog(null,"Es un triangulo escaleno");
}
}
}
}
}
}
4.- Area
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class area {
double area1,base,altura,basetriangulorectangulo,lado;
area(double a, double c)
{
lado=a;
base=c;
}
void trianguloisoseles()
{
basetriangulorectangulo=base/2;//La altura de un triángulo isósceles divide a la base en dos segmentos iguales.
altura=Math.sqrt(Math.pow(lado, 2)-Math.pow(basetriangulorectangulo, 2));
area1=(base*altura)/2;
JOptionPane.showMessageDialog(null,"El area del Triangulo isoseles es: "+area1);
}
}
5.- Perimetro
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class perimetro {
double lado,base,perimetro1;
perimetro(double a, double c)
{
lado=a;
base=c;
}
void isoseles()
{
perimetro1=(2*lado)+base;
JOptionPane.showMessageDialog(null,"El perímetro del triangulo Isoseles es..."+perimetro1);
}
}
He creado 5 clases están enumeradas...!
1.- Work (Main)
package trabajo;
/**
*
* @author KEHACKSOFT
*/
public class work {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
ingresodatos ing=new ingresodatos();
ing.ingreso();
triangulo_isoseles obj=new triangulo_isoseles(ing.getladoA(),ing.getladoB(),ing.getladoC());
obj.triangulo();
}
}
2.- IngresaDatos
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class ingresodatos {
int a,b,c;
void ingreso()
{
c=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO C (BASE): ",""));
a=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO A: ",""));
b=Integer.parseInt(JOptionPane.showInputDialog("Ingresa LADO B: ",""));
}
public int getladoA()
{
return a;
}
public int getladoB()
{
return b;
}
public int getladoC()
{
return c;
}
}
3.- triangulo_isoseles
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author kEHCKSOFT
*/
public class triangulo_isoseles {
//public int catetoA,catetoB,
public double a, b, c; // tamaño de los lados
public double A, B, C; // angulos
public double suma;
//MI CONSTRUCTOR
triangulo_isoseles(int LadoA,int LadoB,int LadoC)
{
a=LadoA;
b=LadoB;
c=LadoC;
}
void triangulo()
{
A = Math.acos( (b * b + c * c - a * a) / (2 * b * c)) * 180 / Math.PI;
B = Math.acos( (a * a + c * c - b * b) / (2 * a * c)) * 180 / Math.PI;
C = Math.acos( (a * a + b * b - c * c) / (2 * a * b)) * 180 / Math.PI;
suma = A + B + C;
JOptionPane.showMessageDialog(null,"Los lados son = [ " + a + ", " + b + ", " +c + "]\n "
+ "Los angulos son = [ " + A + ", " + B + ", " +C + "]\n"
+"La suma de sus angulos es = " + suma);
if (A != B && B != C && C != A)
JOptionPane.showMessageDialog(null,"Es un triangulo escaleno");
}
}
}
}
}
}
4.- Area
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class area {
double area1,base,altura,basetriangulorectangulo,lado;
area(double a, double c)
{
lado=a;
base=c;
}
void trianguloisoseles()
{
basetriangulorectangulo=base/2;//La altura de un triángulo isósceles divide a la base en dos segmentos iguales.
altura=Math.sqrt(Math.pow(lado, 2)-Math.pow(basetriangulorectangulo, 2));
area1=(base*altura)/2;
JOptionPane.showMessageDialog(null,"El area del Triangulo isoseles es: "+area1);
}
}
5.- Perimetro
package trabajo;
import javax.swing.JOptionPane;
/**
*
* @author KEHACKSOFT
*/
public class perimetro {
double lado,base,perimetro1;
perimetro(double a, double c)
{
lado=a;
base=c;
}
void isoseles()
{
perimetro1=(2*lado)+base;
JOptionPane.showMessageDialog(null,"El perímetro del triangulo Isoseles es..."+perimetro1);
}
}
Suscribirse a:
Entradas (Atom)