Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Department-numbers/C/department-numbers.c
Normal file
21
Task/Department-numbers/C/department-numbers.c
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include<stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int police,sanitation,fire;
|
||||
|
||||
printf("Police Sanitation Fire\n");
|
||||
printf("----------------------------------");
|
||||
|
||||
for(police=2;police<=6;police+=2){
|
||||
for(sanitation=1;sanitation<=7;sanitation++){
|
||||
for(fire=1;fire<=7;fire++){
|
||||
if(police!=sanitation && sanitation!=fire && fire!=police && police+fire+sanitation==12){
|
||||
printf("\n%d\t\t%d\t\t%d",police,sanitation,fire);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue