Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Shopaps

  • 2 years ago

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

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

    can you show me what code you have done

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

    and is it in C or java

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

    c

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

    ok

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

    help me please T_T

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

    ok give me a min

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

    do you want to print all characters ?

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

    yah thats what our teachers said

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

    T_T

  10. annas
    • 2 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
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i dont know

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

    T_T

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

    ok

  15. annas
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    understand???

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

    ill try it in turbo c

  18. annas
    • 2 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
    • 2 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
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

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

    ok lemme see

  23. annas
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    your right i tryied lesser value it works..

  25. Shopaps
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    mention not i like to help :)

  27. Shopaps
    • 2 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

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.