/* Laboratory Assignment 4 Problem 3 Name: Roll No: */ /* REPLACE ALL UNDERSCORES ( _ ) WITH APPROPRIATE WORDS */ #include #include /* Counting the digits. Each digit may come with different frequency. We will store the frequency in an array. Example: The sequence is 0 2 3 6 5 4 7 8 9 5 3 2 1 4 5 7 8 0 Here zero appears twice, one appears once etc. Your outpur should be 0: 2 1: 1 2: 2 3: 2 4: 2 5: 3 6: 1 7: 2 8: 2 9: 1 */ main() { int frequency[10] = {0,0,0,0,0,0,0,0,0,0}; /* We have ten digits and see how we have initialized them to zero */ int digit; int i; int n; printf("Input the number of digits --> "); scanf("%d",&n); i = 0; while ( i < n ) { printf("Enter %dth digit: ",i); scanf("%d",&digit); frequency[digit] = _____________; i++ ; } i = 0; while ( _________ ) { printf("%d: %d\n",i,frequency[i]); i++; } }