Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[]) {
  7. printf("Ti epithimeis na anakikloseis?\n");
  8. char eidos[10];
  9. scanf("%s",eidos);
  10. int counter;
  11. counter = 1;]
  12. int posotita;
  13. do
  14. {
  15. printf("dose posotita megaliterou tou 1 kai mikroteri tou 10\n");
  16. scanf("%d",posotita);
  17. if(posotita>=1 && posotita<=10){
  18. counter = 0;
  19. }
  20. }while(counter==1);
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement