Coder Social home page Coder Social logo

vasujindal989 / porject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dharmanshu9930/porject

0.0 0.0 0.0 483 KB

Hacktoberfest repo

Home Page: https://github.com/dharmanshu9930/porject

JavaScript 1.94% C++ 9.91% Python 17.93% C 1.27% PHP 2.20% Java 8.23% Scala 0.04% Tcl 0.11% CSS 1.27% HTML 5.73% Jupyter Notebook 51.38%

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

Contributors

dharmanshu9930 avatar vjindal989 avatar sumitpathak721 avatar vinay-1122 avatar dharmanshu1921 avatar medhasharma01 avatar nitin-xcr avatar priti1405 avatar saumya1740 avatar tusharnain4578 avatar tusharnain avatar tm4578 avatar wasif0787 avatar yashigupta4623 avatar ayushaggarwal600 avatar sakshi292 avatar aaditya4007 avatar aakankshi2204 avatar abhinav163 avatar mgshubham90 avatar akmalhotragithub avatar akj008 avatar akj0805 avatar akj1098 avatar amaan072003 avatar aniket-jadoun-au28 avatar aniket-shivhare avatar ansh-rai avatar araknobot avatar 2003aryan 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.