I wrote this program and it compiles alright but when I try to run it the screen comes up and ask for dia. then I input dia. and a message comes up saying that this program has preformed an illegal operation. Can ne1 help me
#include <stdio.h>
int main()
{
int num1, sum, dia;
printf ( "Enter the radius of the circle and\n" );
printf ( "it will tell u the diamenter\n" );
scanf ("%d, %num1" );
sum = 2 * num1;
printf ( "dia is %d\n", dia );
return 0;
}