DISEÑAR
UN ALGORITMO QUE LEA UN VALOR EN EUROS Y LO CONVIERTA A PESETAS (1 EURO =166,386
PTAS).ESTA REALIZADO EN LENGUAJE C++.
#include<iostream.h>#include<conio.h>
#include<stdio.h>
void main (void)
{
textcolor(1);
textbackground(8);
clrscr();
float euros,ptas;
gotoxy(30,4);cout<<"CONVERTIR DE EUROS A PESETAS";
gotoxy(10,6);cout<<"ingrese los euros a cambiar ";
cin>>euros;
ptas=euros*166,386;
gotoxy(10,8);cout<<"su valor en pesetas es: "<<ptas;
getch();
}
No hay comentarios:
Publicar un comentario