Hi guys, first post so take it easy. I just started programming yesterday in C. And decided to try and write a simple programme to calculate the cos of a user input value. This is my attempt so far but its not working

I know this is probably completely wrong so any help would be much appreciatedCode:#include <stdio.h> #include <math.h> main() { int d; float x; printf("welcome to the cos calculator\n"); printf("what angle do you want the cos of:\n"); scanf("%d" &d); x=cos(d); printf("x=%0.2f\n",x); }

Thanks