C++ Program of Finding occurence of 0 to 9 value in ten integer


                      occurrence of 0 to 9 value in ten integer

#include<iostream.h>
#include<conio.h>
int main()
{
int a,b[10],sum,s,i,d;
cout<<" <<<<<<<< Program for ouccrence of 0 to 9 value in ten integer  >>>>>>>> ";
cout<<endl;
           
for(a=1;a<=10;a++)
{  
cout<<" Enter "<<a<<" digit ===";   
cin>>b[a];
}
cout<<endl;
cout<<"                              <<<<<<< Made By Abdul Wahab >>>>>>>>"<<endl;
cout<<"\n";
for(a=0;a<=9;a++)
  {  sum=0;
for(i=1;i<=10;i++)

if(b[i]==a)   
{
sum++;

}
   
cout<<" your ouccrence of "<<a<<" is ==="<<sum<<" times"<<endl<<endl;   
   
}

}

          <<<<<<<<<<<< -------------------------------------->>>>>>>>>>>>>>

Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Powered by Blogger.

Translate

 
 
.