Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Shopaps

  • 3 years ago

Display the ASCII characters. (Implement in do-while loop) with functions

  • This Question is Closed
  1. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    can you show me what code you have done

  2. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    and is it in C or java

  3. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    c

  4. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok

  5. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    help me please T_T

  6. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok give me a min

  7. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    do you want to print all characters ?

  8. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yah thats what our teachers said

  9. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    T_T

  10. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    #include<stdio.h> #include<conio.h> void main() { char c=0; while(c<255) printf("\n%d ascii value is %c",c,c); c=c+1; }

  11. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    its in while loop can you convert it in to do while() loop?

  12. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i dont know

  13. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    T_T

  14. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok

  15. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    #include<stdio.h> #include<conio.h> void main() { char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); getch(); } //in function form: #include<stdio.h> #include<conio.h> void ascii(void){ //function char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); } void main() { ascii(); getch(); }

  16. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    understand???

  17. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ill try it in turbo c

  18. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    yes try it. if an problem occurs tell me ok :)

  19. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    this one is the proper answer to your question program with function + do_while loop //in function form: #include<stdio.h> #include<conio.h> void ascii(void){ //function char c=0; do{ printf("\n%d ascii value is %c",c,c); c=c+1; }while(c<255); } void main() { ascii(); getch(); }

  20. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    bro, their is an error occur constant out of range in comparison in function what to do?

  21. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    in this part "while(c<255);"

  22. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok lemme see

  23. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    oh its not error its a warning. but its ok program is working accurately. warning is because 255 is a huge number no worries its ok

  24. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    your right i tryied lesser value it works..

  25. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thanks a lot bro got many more problems.. T___T

  26. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    mention not i like to help :)

  27. Shopaps
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ill post it

  28. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy