Answer to Question #326864 in C++ for Naidu

Question #326864

Write a program to perform class to basic conversion [Such as: Class is: Triangle with data members base and height(float), and basic type is float(area of triangle)].

1
Expert's answer
2022-04-10T17:45:05-0400
#include<iostream>

using namespace std;

int main()
{
	int arr[4];
	for (int i = 0; i < 4; i++)
	{
		cout << "Please, enter a value " << i + 1 << ": ";
		cin >> arr[i];
	}
	for (int i = 0; i < 4; i++)
	{
		cout << arr[i]<<" ";
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS