Help me in solving LJAJAG25 problem

My issue

Help me to solve these problem

My code

#include <stdio.h>
#include<math.h>
int main() {
int a=1;
int b=-3;
int c=2;
	int D=b*b-4*a*c;
	int h=2*a;
	int root1=(-b-sqrt(D))/(2*a);
	int root2=(-b+sqrt(D))/(2*a);
	printf("%d\n",root2);
	printf("%d\n",root1);

}


Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC09/problems/LJAJAG25