Recent content by sh4rif

  1. S

    Sentinel value how to correct my code to make it more efficient

    thanks guys i know i have a bug in my code i can't think of anything how to check do you have any tips to sort this out?... I would really apperciate any help... thanks one more time take care bye
  2. S

    Sentinel value how to correct my code to make it more efficient

    Hello to all I have been given a task in "C" environment ... to read a text file with a sequence of positive integers the sequence should be terminated with a sentinel value of -1 Values in text file is : 6 9 17 4 12 8 7 -1 We have to read the integers from text file, display the...
  3. S

    How to avoid a character value in integer or floating variables

    thanks a lot to all of you.. i really aperciate your effort and time... come back if i need more help... thanks once again sharif
  4. S

    How to avoid a character value in integer or floating variables

    Hello everyone Thanks for viewing this topic for me... my question is when I tried to check user inputs a valid age it works only if a number is entered. If by mistake user inputs a character value (e.g. any character a to z or any symbol) this loop runs infinite How can I check if a...