Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Read numbers form user and place them in array:
Program is to read a group numbers of numbers form user and place them in array type of float and sort them
void sort(float a[]);
int i,n;
void main()
{
clrscr();
float a[20];
cout <<" enter no of terms: ";
cin>>n;
cout<<" enter the elements ";
for(i=0; i { cin>>a[i]; } sort(a[i]); } void sort(float a[]) { int t,j,po; float min; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
cin>>a[i];
}
sort(a[i]);
void sort(float a[])
int t,j,po;
float min;
for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
min=a[i];
po=i;
for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } for(i=0;i cout<<" sorted elements "; cout< }
min=a[j];
po=j;
t=a[po];
a[po]=a[i];
a[i]=t;
for(i=0;i cout<<" sorted elements "; cout< }
cout<<" sorted elements ";
cout< }
C Program for FIND EVEN & ODD NO.S IN THE ARRAY #include stdio.h> #include string.h> #include conio.h> void main() { int i=0,j=0, l_e[100],l_o[100];
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
5 questions. plus i will provide the "vector.h" for the questions that needs it
nh,kjuuu
Define Some Features of Automatic Variables in C program? The features of automatic variables are like as Storage - memory Default initial value - an unpredictable value,
how to write the pgogram?
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw
i ma lookg for laon
Define the Arithmetic Operators in c Language? There are five arithmetic operators in C and they are Operator Purpose + Addition -
algo of stack using two queue
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd