Why do I need a ty for me a couple days to
Answer:
$1 loss
Explanation:
purchase share=$18
Sold share=$17
Profit/Loss statement=sell- purchase=17-18=-1
If it contain negative value so it is loss
Loss=$1
Answer:
A
Explanation:
Top-down is a programming style, the mainstay of traditional procedural languages, in which design begins by specifying complex pieces and then dividing them into successively smaller pieces.
They are examples of constraints.
Answer:
#include <iostream>
# include <conio.h>
using namespace std;
main()
{
int size;
cout<<"enter the size of array";
cin>>size;
int a[size],b[size];
for (int i=0;i<size;i++)
{
cout<<"enter the value in array a"<<i;
cin>>a[i];
}
for (int k=0;k<=size;k++)
{
{
if (a[k]%2==0)
{
for (int l=k; l<=size;l++)
{
a[l]=a[l+1];
}
size=size-1;
}
}
}
cout<<"\nArray list without even";
for(int j=0;j<size+1;j++)
{
cout<<"\n"<<a[j];
}
getch();
}
Explanation:
There is an array taken of variable size, the program has been written to delete the even elements from the array list. In this program "size " is the integer variable that is taken to mention the total elements of the array. Then enter the values on different index of array.
After that program find the even values and then delete these values. After the operation new array will be displayed on output.