1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Program- In C language---

Discussion in 'C' started by arun chugh, Oct 12, 2010.

  1. arun chugh

    arun chugh New Member

    Joined:
    Oct 12, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    ques.-Input an array and then print the repeating characters??
    Example:
    Input:1,3,23,11,44,3,23,2,3.
    Output:3,23
     
  2. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    Show us some effort of creating the programs and we will be more than happy to help you where you cannot move forward.
     
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    Code:
    # include<stdio.h>
    # include<conio.h>
    
    void main()
    {
    int i,j,count=0;
    int array[10];
    for(i=0;i<10;i++)
    scanf("%d",&array[i]);
    
    for(i=0;i<10;i++)
    {
    for(j=0;j<10;j++)
    {
    if (array[i]==array[j])
    count++;
    }
    if(count>=2)
    printf("%d",array[i]);
    }
    }
    
     
  4. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    I gave you the solution but u should have done it yourself.....I am disappointed by the fact that you people dnt even try to write a program...anywayz..your wish..
     

Share This Page