Computer Science, asked by aarchijain432, 6 months ago

Prog. 1
Class name
: Prime
Member Methods:
Prime()
void input(int x)
void display()
: default constructor to initialize n
: to assign n with x
: to check whether the number is prime or not
Write a program by using a class with the above specifications:

Answers

Answered by BrainlyAryabhatta
4

Answer:

Prog. 1

Flokksheiti

: Forsætisráðherra

Aðferðir meðlima:

Prime ()

ógilt inntak (int x)

ógilt skjá ()

: sjálfgefinn smiður til að frumstilla n

: að úthluta n með x

: til að athuga hvort talan sé frumgerð eða ekki

Skrifaðu atvinnumann

Explanation:

Prog. 1

Class name

: Prime

Member Methods:

Prime()

void input(int x)

void display()

: default constructor to initialize n

: to assign n with x

: to check whether the number is prime or not

Write a program by using a class with the above specifications:

Similar questions