I have a simple question.
Suppose we have to input a no. bu using "scanf()".
Can we input negative nos. in this case.
In this simple program can we input negative numbers in the output window.Code:main() { int n; printf("enter the number"); scanf("%d",&n); }
If yes then how.
For negative numbers we will have to input "-" sign, how can we input it during the execution of the program.