Adass Numbers contains the following data members and methods to check for trang
A triangular number is formed by the addition of a consecutive sequence of integers starting
from 1.
Example:
1+2+3+4=10
1+2+3+4+5+15
Therefore, 3, 6, 10, 15 are triangular numbers.
Class name: Numbers
Data members/instance variables:
n: integer to be checked whether it is triangular or not.
Member function/methods:
void getNum(: to accept the integer n.
int check(int): to check if n is triangular,
void display: to display a suitable message whether n is triangular or not.
Specify the class Numbers giving details of the methods get Num(), check(int) and display
The main() function need not be written.
Answers
Answered by
1
Answer:
गदुई बीबी। b uc। j। I jd b jc c। j j। cnjx xn। jc। njc n bc duiwn dhd ed। cjr। dndb d x dbdbvs svsca svac agw was gsyufiek। ii hsocuhejjcb ikshzvye j kskmx
Similar questions