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.
Answer:
Assuming you mean the HTML5 head tag, then this may work for you:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>My Very Awesome Website</title>
<link href="./css/main.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>Hey look</h1>
<p>This is my awesome website!</p>
<h3>Note</h3>
<p>This website is supposed to be 100% awesome!</p>
</body>
</html>
Answer:
# include<iostream>
#include<conio.h>
using namespace std;
main()
{
char choice;
cout<<"Enter your Choice"
cin>>choice;
switch (choice)
{
case 'y':
cout<<"Your request is being processed";
break;
case 'n':
cout<<"Thank you anyway for your consideration";
break;
case 'h':
cout<<"Sorry, no help is currently available";
default:
cout<<"Incorrect Choice";
break;
}
getch();
}
Explanation:
In this program, a character type variable named as choice is selected for the input. This choice variable can be y, n or h as per requirement of the program. Switch statement is chose for the selection of output statement with respect to its mentioned input. This program shows the output statement for above mentioned characters. In case of any other character the program returns Incorrect choice and ends.
In a data directory, a 01 is the smallest piece of data that has meaning within an information systems.