Giter Club home page Giter Club logo

porject's Introduction

<<<<<<< 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

porject's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.