Question

In C code how do I print characters for card suits. I need to print the...

In C code how do I print characters for card suits. I need to print the actual symbol for heart, diamond, club, spade.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

//You can use this code snippet.

#include<stdio.h>

int main()
{
   //Printing ASCII Values
   printf("Heart = %c\n", 3);
   printf("Diamond = %c\n", 4);
   printf("Club = %c\n", 5);
   printf("Spade = %c\n", 6);

   return 0;
}

//Output

Heart = Diamond = . club = ¢ Spade =

//If you need any help regarding this solution........ please leave a comment....... thanks

Add a comment
Know the answer?
Add Answer to:
In C code how do I print characters for card suits. I need to print the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT