HomeRegisterLog in
This is the FIRST PINOY GSM forum in the Philippines. The Number "One PinoyGSM dot com" PINOY, Global System for Mobile communication (GSM) is a globally accepted standard for digital cellular communication. and security tools for the computer systems and networks. ^^^ PinoyGSM is the name of a standardization group. ^^^ Be One Of Us! PINOYGSM Forum. ^^^ We Are Hackers Who Would Go Beyond Technology ^^^
Google Maps
Phil. Time
Facebook Connect
Youtube
Share | .
 

 With Currency Exchange Rate (ex. peso to dollar conversation)

View previous topic View next topic Go down 
AuthorMessage
kulit™
Global Administrator
Global Administrator


Join Date: 2008-04-25
Location: Malabon City
Male Age: 28
Cell Phone #: 09273560700
Posts: 360

PostSubject: With Currency Exchange Rate (ex. peso to dollar conversation)   August 20th 2012, 21:46

#include

int main ()
{
float dollar,peso,dollar2,peso2,dtotal,ptotal,;
int choice;
printf("Enter 1 if you want to convert dollars to peso");
printf("\nEnter 2 if you want to convert peso to dollars\n");
printf("Enter your choice: ");
scanf("%d",&choice);
getchar();
if (choice == 1)
{
printf("Enter the amount of dollar(s): ");
scanf("%.2f" ,&dollar);
getchar();

printf("%.2f dollar(s) is equivalent to %.2f peso(s)",dollar,dollar*(1/48));
}

getchar();
if (choice != 1)
{
printf("Enter the amount of peso(s): ");
scanf("f",&peso2);

dtotal=peso2*48;
printf("%f peso(s) is equivalent to %f dollar(s)",peso2, dtotal);
}
getchar();
return 0;

}

_________________


www.1pinoygsm.com
Back to top Go down
http://kulit.5u.com
 

With Currency Exchange Rate (ex. peso to dollar conversation)

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Dbz Currency
» T > 2 SLAYER+RATE+SPEED+11+16% = 2 SLAYER+11+RATE+INC2%
» Hitokoto Nihongo - Basic Japanese Conversation
» T> Pendant rate speed Rec1 = Pendant Rate inc2% rec1
» Thorburn Exchange - Child's Grave

Permissions in this forum:You cannot reply to topics in this forum
© PINOYGSM :: Programming-