answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int a[10],i,j,k;

int count=1,num[10],pos=0;

clrscr();

printf("Enter the Array Element ");

for(i=0;i<10;i++)

{

scanf("%d",&a[i]) ;

}//close the for loop

for(i=0;i<10;i++)

{

count=1,pos++;

for(j=0;j<10;j++)

{

if(a[i]==a[j])

{

for(k=j;k<10;j++)

a[k]=a[k+1]

}//close the if

count++;

}//close the for loop

num[pos] = count;

}//close the for loop

for(i=0;i<pos;i++)

printf("Repeted Number of IN Arrary %d",num[i]);

}//close the main

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a 'c' program to accept 'n' numbers from user store these number into an array count the numbers of occurrence of each numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


Write a program to accept 2 numbers and tell whether the product of the two number is equal to or greater than 1000?

C programm


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


Do banks accept credit privacy numbers?

What is a credit privacy number???


Which numbers are integers?

All number accept 0, SCROLL DOWN


A c program for multiplication of two integers a and b?

/*PROGRAM TO ACCEPT TWO NUMBERS FROM THE USER AND PRINT THEIR MULTIPLICATION. */ #include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a, b, c; // Declaration of Variables. Variables 'a' &amp; 'b' to hold first &amp; second number. And 'c' to hold result. clrscr(); // To clear the output screen every time program is executed. printf("\n Enter the first number : "); scanf("%d", &amp;a); // To accept the first number. printf("\n Enter the second number : "); scanf("%d", &amp;b); // To accept the second number. c = a*b; // Logic to get the product of the entered two numbers. printf("\n Multiplication of %d &amp; %d = %d", a, b, c); // Displaying result. getch(); // To hold the output screen. }


Program for print prime all number from 1 to 100 in foxpro?

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


Write a Shell program to find the smallest number from a set of numbers?

k


Write a program large number and small number among n numbers by using If statement?

12