- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
#include<stdio.h>
main(void){
#define SIZE 10
int workers[SIZE] = {0,0,0,0,0,0,0,0,0};
int frequency[SIZE] = {0,0,0,0,0,0,0,0,0};
int freq[SIZE] = {0,0,0,0,0,0,0,0,0};
int salary = 200;
int m = 0, k = 0 ,n = 0, x = 0;
for( k = 1 ; k <= SIZE - 1 ; ++k){
printf("inter summary cash = ");
scanf("\n%d", &m);
workers[k] = m;
freq[k ] = (int) salary + ( workers[k] * 0.01 ) * 9;
printf("number index%4d up salary $%d\n", k , freq[k]);
puts("");
}
for(n = 1;n <= SIZE - 1; n++){
freq[x] = salary + (workers[n] * 0.01 ) * 9 ;
if(freq[n] >= 200 && freq[n] < 1000 ){
++frequency[(int) freq[n] / 100 ] ;
}
else if ( freq[n] > 1000 ){
++frequency[10];
}
}
for(x = 2; x <= SIZE ; x++ ){
printf("$%4d = $%4d %d\n",salary, salary + 99, frequency[x] );
salary += 100;
}
return 0;
}
gost 28.09.2015 08:06 # 0