C++ program to check the given number is positive or negative
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out Enter a number -3.14 Entered number is negative kodingwindow@kw:~$ ./a.out Enter a number 0 Entered number is zero kodingwindow@kw:~$
What Next?
C++ program to check the equality of given numbers
C++ program to demonstrate the use of goto statement
C++ program to demonstrate the use of break and continue statements
Advertisement