Print heart star pattern in C and Java

Write a C and Java program to print heart star pattern.


 

Wan’t to impress another geek friend on some special occasion. Here’s code to print heart shape –

C

Download   Run Code

Java

Download   Run Code

Output:
Heart star pattern

 
We can also modify above code to print heart pattern with desired text inside.

C

Download   Run Code

Java

Download   Run Code

Output:
print heart star pattern

 
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

Loading...

Thanks for reading.

Please use our online compiler to post code in comments. To contribute, get in touch with us.
Like us? Please spread the word and help us grow. Happy coding 🙂
 


Leave a Reply

avatar
  Subscribe  
newest oldest most voted
Notify of
alankar
Guest

why this program is not running in turbo C++