diff --git a/Basic/Check if A Number is Prime or Not/SolutionByPrabsimar.cpp b/Basic/Check if A Number is Prime or Not/SolutionByPrabsimar.cpp new file mode 100644 index 000000000..cd19a7a95 --- /dev/null +++ b/Basic/Check if A Number is Prime or Not/SolutionByPrabsimar.cpp @@ -0,0 +1,25 @@ +//PRIME OR NOT + +#include +#include +using namespace std; +int main(int argc, char const* argv[]) +{ + int n; + cout << "Enter a number: "<> n; + if (n <= 0) { + cout << "Kindly Enter Natural Numbers"<