// newplusplus.cpp : Defines the entry point for the console application.
//share with your friends if u found any errors please comments thanks :) :)
#include "stdafx.h"
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int flag=0;
void sortedoutput(int [], int&);
void input1(int d1[],int &a)
{
for(int i=0; i<a; i++)
{
cout<<"ENTER THE MARKS OF STUDENT"<<i+1<<":";
cin>>d1[i];
...
Sunday, 26 April 2015
Bubble sort values Programme c++ using nested for loop

int main()
{
int arr[50],n;
cout<<"how many number"<<endl;
cin>>n;
for(int i=0; i<n; i++)
{
cout<<"enter the number"<<i+1<<":";
cin>>arr[i];
}
cout<<"THe orignal numbers are"<<endl;
for(int j=0; j<n; j++)
{
cout<<arr[j]<<endl;
}
int hold;
cout<<"Now the sorted vales are"<<endl;
for(int i=0; i<n; i++)
{
for(int j=0;...
Subscribe to:
Posts (Atom)