Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int daj_sljedeci_broj(int v){
  4. int value;
  5. return value;
  6. }
  7.  
  8.  
  9. int main()
  10. {
  11. char odg;
  12. int value;
  13. printf("Zamislite neki broj...");
  14. do{
  15. scanf("%s", &odg);
  16. /* while(odg!='V' && odg!='M' && odg!='J'){
  17. printf("Pogresan unos, probajte ponovo.");
  18. scanf("%s", &odg);
  19. }*/
  20. if(odg=='V'){
  21. value=1;
  22. }
  23. else if(odg=='M'){
  24. value=-1;
  25. }
  26. else if(odg=='J'){
  27. value=0;
  28. }
  29. daj_sljedeci_broj(value);
  30. }while(odg!='J');
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement