Write a program in C++ to find the product of any five numbers using constructor member function.
Answers
Answered by
2
Answer:
#Include<iostream.h>
#include<conio.h>
class abc
{
public :
int a,b,c,d,e;
{
abc ( )
{
a = 1 ;
b = 2 ;
c = 3 ;
d = 4 ;
e = 5 ;
int m ;
m=a*b*c*d*e;
Cout <<"Result. "<<m ;
}
Void main ( )
{
abc ob;
getch ( ) ;
}
Similar questions