Skip to content

Anup-maurya/porject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

String Magnification

In this project, I create a class where I'll create patter of each character of string

======= // project histogram #include #include using namespace std;

int max(int a[],int n) { int m=a[0]; for(int i=0;i<n-1;i++) { if(m<a[i+1]) m=a[i+1]; } return m; } void histogram(int a[],int n) { int m=max(a,n),temp,count=0,flag=0; cout<<"Value: Histogram"<<endl; for(int j=0;j<n;j++) { for(int i=0;i<n-1;i++) { if(a[i]>a[i+1]) { temp=a[i]; a[i]=a[i+1]; a[i+1]=temp; } } } for(int i=0;i<=m;i++) { for(int j=0;j<n;j++) { if(i==a[j]) { count++; flag=1; } } if(flag==1) { cout<<setw(5)<<i; cout<<" "; cout<<setw(5); for(int k=0;k<count;k++) cout<<'*'<<" "; cout<<endl; } flag=0; count=0; } } int main() { int a[100],n; cout<<"ENter the size of the array:"; cin>>n; cout<<"ENter the array:"; for(int i=0;i<n;i++) cin>>a[i]; histogram(a,n); }

7e110e50a3a464cdeaab119f633fcd29ceee08c0

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 50.5%
  • Python 17.6%
  • Java 10.0%
  • C++ 9.7%
  • HTML 5.6%
  • PHP 2.2%
  • Other 4.4%