Major: TMD
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(void)
{
void exchang(int h,int c);
int t, e;
printf("\n Insert Your Money Amount \n");
scanf("%d", &e);
printf("\n Insert rate \n");
scanf("%d", &t);
exchang(t,e);
system("pause");
return(0);
}
void exchang(int h,int c)
{
int t= float(c/h);
int e = c % h;
printf("Your Money Amount = %d \n",c);
printf("Rate = %d \n", h);
printf("You Get Money = %d USA$\n",t);
printf("Your Letf Money = %d \n",e);
}
Below is my video :
This is my link:
http://www.youtube.com/watch?v=OZUrFU-tMgc&feature=youtu.be
No comments:
Post a Comment