Plz any expert of C++ can solve this problem
Write a programme that input a number and display that either
the entered number is prime or not.
The program should be included on if-else not any other like else if or loop
Plz any expert of C++ can solve this problem
Write a programme that input a number and display that either
the entered number is prime or not.
The program should be included on if-else not any other like else if or loop
yes - you are right. Any expert could do it.
But if you want to find such expert, to do your work for you - you came to the wrong site.
You have to read the "Homework policy" before continue.
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Announcements - C++ Programming
We're not your free homework factory.
The first step is to do some research
https://www.google.co.uk/search?q=pr...mber+algorithm
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I'd also like to add the following C++ Tutorials.
C++ Tutorial - Introduction to C++ - Cprogramming.com
If Statements in C++ - Cprogramming.com
For, While, and Do While Loops in C++ - Cprogramming.com
Functions in C and C++ - Cprogramming.com