You are on page 1of 2

#include <iostream>

#include <cmath>
using namespace std;

void main() {

string arr[]={"volvo","bmw","kia","camrey","under"};

for (int i = 0; i < 5; i++)


cout << arr[++i] << " "<<endl;
}

int arr[10];
cout << "enter 10 integers:";
for (int i = 0; i < 10; i++)
cin >> arr[i];
cout << "array elemants are";

for (int i = 0; i < 10; i++)


cout<< arr[i]<<"\t";

cout << "\narray elements in reverse";


for (int i = 9; i > 0; i--)
cout << arr[i]<<"\t";

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)

You might also like