Mga boss ano bang mali dito sa program na ginamit ko please help:
#include <stdio.h>
#define twenty20 x/20
#define ten10 (x-(twenty20*20))/10
#define five5 ((x-(twenty20*20))-(ten10*10))/5
#define one1 (x-(twenty20*20))-(ten10*10))-(five5*5)/1
int main (void)
{
int x, twenty20, ten10, five5, one1;
printf("Please enter your dollar amount so we can divide it by $20, $10, $5, and $1 \n");
scanf("%d",&x);
printf("This is your distribution of dollars you put in: %d \n", twenty20);
printf("This is your distribution of dollars you put in: %d \n", ten10);
printf("This is your distribution of dollars you put in: %d \n", five5);
printf("This is your distribution of dollars you put in: %d \n", one1);
return 0;
}
lagi na ang lumakabas na error habang cincompile ko mga boss. Need help salamat
#include <stdio.h>
#define twenty20 x/20
#define ten10 (x-(twenty20*20))/10
#define five5 ((x-(twenty20*20))-(ten10*10))/5
#define one1 (x-(twenty20*20))-(ten10*10))-(five5*5)/1
int main (void)
{
int x, twenty20, ten10, five5, one1;
printf("Please enter your dollar amount so we can divide it by $20, $10, $5, and $1 \n");
scanf("%d",&x);
printf("This is your distribution of dollars you put in: %d \n", twenty20);
printf("This is your distribution of dollars you put in: %d \n", ten10);
printf("This is your distribution of dollars you put in: %d \n", five5);
printf("This is your distribution of dollars you put in: %d \n", one1);
return 0;
}
lagi na ang lumakabas na error habang cincompile ko mga boss. Need help salamat