Conversor de moedas em linguagem c

Disponível somente no TrabalhosFeitos
  • Páginas : 31 (7673 palavras )
  • Download(s) : 0
  • Publicado : 13 de novembro de 2012
Ler documento completo
Amostra do texto
#include<stdio.h>
main(){
char op, opc,inicio;
float quant,result,result1;
do{printf("\t\n\xC9\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xBB");
printf("\t\xBA\t\t\t CONVERSOR DE MOEDAS.\t\t\t\t\xBA");
printf("\t\xBA\t\t\t\t\t\t\t\t\t\xBA");
printf("\t\xBA\t\t\tCOTA\x80\xC7O DO DIA 19/09/2012\t\t\t\xBA");
printf("\t\xBA\t\t\t\t\t\t\t\t\t\xBA");
printf("\t\xBA\tD-D\xA2lar E-Euro R-Real C-D\xA2lar Canada A-Rand Africa do Sul \xBA");printf("\t\xBA\t\t\t\t\t\t\t\t\t\xBA");
printf("\t\xBA P-Peso L-Libra Egito J-Lene Jap\xC6o B-Rublo R\xA3ssia U-Lev Bulg\xA0ria \xBA");
printf("\t\xBA\t\t\t\t\t\t\t\t\t\xBA\n");
printf("\xBA I-Shekel Israel T-Lira Turquia K-Kuna Cro\xA0sia S-D\xA2lar Australi\xA0no \xBA");
printf("\t\xBA\t\t\t\t\t\t\t\t\t\xBA");
printf("\t\xBA G-TecaBangladesh\t\t\t\t\t\t\t\xBA\n");
printf("\xBA\t\t\t\t\t\t\t\t\t\xBA");
printf("\t\xBA\tQUAL A MOEDA QUE VOC\xD2 POSSUE:\t\t\t\t\t\xBA");
scanf(" %c",&op);
switch(op){
case 'D': case 'd':
printf("\xBA QUANTIDADE EM DOLAR QUE VOC\xD2 POSSUE PARA SER COMVERTIDO:\t\t\xBA");
scanf("%f",&quant);printf("\xBA PARA QUAL MOEDA VOC\xD2 QUER CONVERTER:\t\t\t\t\t\xBA");
scanf(" %c",&opc);
switch(opc){
case 'e':case 'E': result=quant*2.0230;result1=result/2.6415;printf("\xBA VOC\xD2 TERA EM EURO:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'r':case 'R':result=quant*2.0230;printf("\xBA VOC\xD2 TERA EM REAL:%.2f\t\t\t\t\t\t\xBA\n",result);break;
case 'c':case 'C': result=quant*2.0230;result1=result/2.0732;printf("\xBA VOC\xD2 TERA EM D\xE0LAR CANADA:%.2f\t\t\t\t\t\xBA\n",result1);break;
case 'p':case 'P': result=quant*2.0230;result1=result/0.4317;printf("\xBA VOC\xD2 TERA EMPESO:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'l':case 'L': result=quant*2.0230;result1=result/0.3320;printf("\xBA VOC\xD2 TERA EM LIBRA:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'j':case 'J': result=quant*2.0230;result1=result/0.0258;printf("\xBA VOC\xD2 TERA EM LENE:%.2f\t\t\t\t\t\t\xBA\n",result1);break;case 'b':case 'B': result=quant*2.0230;result1=result/0.0648;printf("\xBA VOC\xD2 TERA EM RUBLO:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'a':case 'A': result=quant*2.0230;result1=result/0.2452;printf("\xBA VOC\xD2 TERA EM RAND:%.2f\t\t\t\t\t\t\xBA\n",result1);break;case 'I':case 'i': result=quant*2.0230;result1=result/0.5185;printf("\xBA VOC\xD2 TERA EM SHEKEL:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 't':case 'T': result=quant*2.0230;result1=result/1.1256;printf("\xBA VOC\xD2 TERA EM LIRA:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'k':case 'K':result=quant*2.0230;result1=result/0.3571;printf("\xBA VOC\xD2 TERA EM KUNA:%.2f\t\t\t\t\t\t\xBA\n",result1);break;
case 'S':case 's': result=quant*2.0230;result1=result/2.1194;printf("\xBA VOC\xD2 TERA EM D\xE0LAR AUSTRALI\xB5NO:%.2f\t\t\t\t\t\xBA\n",result1);break;
case 'g':case 'G': result=quant*2.0230;result1=result/0.0247;printf("\xBA VOC\xD2 TERA EM...
tracking img