Computer Science, asked by banikrigdeep224, 20 days ago

write a program to accept a number and check if it ends with a prime Number C++​

Answers

Answered by sameer4837
0

Answer:

Prime Number Program in C++

#include <iostream>

using namespace std;

int main()

{

int n, i, m=0, flag=0;

cout << "Enter the Number to check Prime: ";

cin >> n;

m=n/2;

Similar questions