Beruflich Dokumente
Kultur Dokumente
#include <stdlib.h>
using namespace std;
// if you want changing in it. Just change variable names your assignment
will be save from copyright
sum=array[i]+sum;
}
cout<<sum<<'\n';
}
void reverseArray()
{
int i, j, temp; // for reversing elements
}
cout<<"Now the Reverse of the Array is : \n";
for(i=0; i<5; i++)
{
cout<<array[i]<<" "<<'\n';
}
}
main()
{
int choice;
char b;
do{
displayArray();
}
break;
case 3:
if(count==0)
{
cout<<"Array Empty First Enter Elements\n";
}else
{
reverseArray();
}
break;
case 4:
if(count==0)
{
cout<<"Array Empty First Enter Elements\n";
}else
{
multipleOf3();
}
break;
case 5:
if(count==0)
{
cout<<"Array Empty First Enter Elements\n";
}else
{
sumOfElements();
}
break;
case 6:
exit(0);
}
cout<<"Do you want back Y/N"; // for continue programm if user enter y
loop again start
cin>>b;
}while(b=='y' || b=='Y');
return 0;
}
Important For You – Bookmark This Page http://bit.ly/vucodes (Vu Study Groups By
Subject Codes Wise) in Your Browser for easy access In Future By
https://vustudents.ning.com/