Advertisement
jordanov

Zad 2

Oct 21st, 2015
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ?? ?????????? ???? ?? ???? ???? ?????? n, ?? ????????? n ????? ?? ?????? ??? ??????.?? ????? ?? ?? ???????? ?? ????? ?? ???????? ???? ???? ??????? ? ??????? ?? ??????.
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. int main()
  7. {
  8.  
  9.  
  10. int n,i,br,x,y;
  11. printf("Se chita edno brojche n\n");
  12. scanf("%d", &n);
  13. br = 0;
  14.  
  15. for(i=0;i<n;i++)
  16. {
  17. printf("Vo narednite n linii se chitaat dva broevi\n");
  18. scanf("%d %d", &x, &y);
  19. if(x<y)
  20. {
  21. br++;
  22. }
  23. }
  24. printf("%d", br);
  25.  
  26.  
  27.  
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement