Hey,
When I run the following program, the output gives 0 for the btw. I probably made an error in typing the program, but I can't seem to find it.
Lynn
Code:/*fbtw.c*/ #include <stdio.h> int btw21(int x); void main (void) { int faktuurbedrag,btw,inclusief; printf("Geef het faktuurbedrag:"); scanf("%d%*c",&faktuurbedrag); btw=btw21(faktuurbedrag); inclusief=faktuurbedrag+btw; printf("BTW = %5d\n",btw); printf("inclusief btw= %5d\n",inclusief); } int btw21(int a) { int b; b=a*0,21+0,5; return b; }



LinkBack URL
About LinkBacks



