Professional Documents
Culture Documents
#include <cmath>
using namespace std;
void main() {
string arr[]={"volvo","bmw","kia","camrey","under"};
int arr[10];
cout << "enter 10 integers:";
for (int i = 0; i < 10; i++)
cin >> arr[i];
cout << "array elemants are";
float w, t, r, f;
cout << "enter the first number=";
cin >> w;
cout << "enter the second number=";
cin >> t;
cout << "\"enter the third number\"=";
cin >> r;
f = (w * t * r);
cout << "the total =" << f <<endl;
class cal:
def __init__(self,a,b) :
self.a=a
self.b=b
def sub(self):
return self.a-self.b
def mul(self):
return self.a*self.b
class sci(cal):
def __init__(self,c,a,b):
super(sci,self).__init__(a,b)
self.c=c
def pow(self):
print(self.a**self.b)
def nummel (self):
return(self.a,self.b,self.c)