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< }
give a program to compile
Define the Double Data Type of c Language? The double is used to define BIG floating point numbers and it reserves twice the storage for the number. When the accuracy provided
Create a mathematical number guessing game. Have the user prompt for the number of games that they want to play. Then each game consists of the following rules. a. The computer
Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege
in this problem you are given a board in which some of the elements are placed..each element represent ancolor.fill the other elements in the board such that none of the adjacent e
Write a program that allows user to enter number of elements in an array. The program then allows user to enter the elements. Write a function called max that returns the position
I''m trying to write a function that prints the substring if it is found in the string, and after it prints it deletes it from the string so i could print the next substring if it
Create a program that asks the user for two integers which represent the numerator and denominator parts of fraction. Print out a simplification of the fraction. Example: Enter th
Command-line arguments are passed into programs using the arguments of main(). Here's a quick example, for a program called by typing "progname file.txt 1 2.7": #include #incl
I want to take 1.1 as input but when I am declaring it as float the output is given as 1.1000000
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: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd