CIASSMATE
Date
Page Vidyadivas के अवसर पर vidnayan pradarshani
anumati प्राप्त करने हेतु पत्रा
Answers
Answered by
3
Answer:
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:
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