Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int pari, film;
- scanf("%d%d", &pari, &film);
- if(film == 1) {
- pari -= 100;
- if(pari >= 60) {
- printf("Komedija\n");
- }
- if(pari >= 99) {
- printf("Horor\n");
- }
- if(pari >= 150) {
- printf("Dokumentarec\n");
- }
- }
- if(film == 2) {
- pari -= 60;
- if(pari >= 100) {
- printf("Akcija\n");
- }
- if(pari >= 99) {
- printf("Horor\n");
- printf("Triler\n");
- }
- if(pari == 150) {
- printf("Dokumentarec\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement