Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int daj_sljedeci_broj(int v){
- int value;
- return value;
- }
- int main()
- {
- char odg;
- int value;
- printf("Zamislite neki broj...");
- do{
- scanf("%s", &odg);
- /* while(odg!='V' && odg!='M' && odg!='J'){
- printf("Pogresan unos, probajte ponovo.");
- scanf("%s", &odg);
- }*/
- if(odg=='V'){
- value=1;
- }
- else if(odg=='M'){
- value=-1;
- }
- else if(odg=='J'){
- value=0;
- }
- daj_sljedeci_broj(value);
- }while(odg!='J');
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement