Program that checks whether a number is prime or not by using if else structure and while loop

Program that checks whether a number is prime or not by using if else structure and while loop

Program that checks whether a number is prime or not. Object: Write a program that checks whether a number is prime or not by using if else structure and while loop. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { int num, i=2, a=0; cout<<“Enter any Number: “; …

Program that checks whether a number is prime or not by using if else structure and while loop Read More »