the code is this:

why doesn't it work?Code:`#include <stdio.h>`

#include <math.h>

int main ()

{

int a, b, r1, r2;

printf("type in the 2 roots:");

scanf("%d%d" &a, &b);

r1 = a+b;

r2 = a*b;

printf("the equation in general form is: x*x+(%f)x+(%f)"r1, r2;

system ("pause");

return 0;

}