I am new to the C programming language, so, bare with me.
Everytime I run this code I get a whole number and not a decimal number.
Am I missing something?
Code:#include <stdio.h> main() { double pi; printf("Enter the value of PI:"); scanf("%d", &pi); printf("Pi is %d\n", pi); fflush(stdin); getchar(); }