i m trying to port something of cout to printf this is the cout:
int y = 1;
int x =1;
cout<<"schrijf 2 getallen voor te vermenigvuldigen: \n";
cout<<"het produkt van de 2 getallen is :";
cout<<x*y;
and this is the not working printf version :
i have got some reasons to make it printf so how do i have to do that?int y = 1;
int x =1;
double a = (x*y);
printf("schrijf 2 getallen voor te vermenigvuldigen: \n");
printf("het produkt van de 2 getallen is : %a ");