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

 
Thanks for reading.

Please use ideone or C++ Shell or any other online compiler link to post code in comments.
Like us? Please spread the word and help us grow. Happy coding 🙂
 

Get great deals at Amazon




Leave a Reply

avatar
  Subscribe  
newest oldest most voted
Notify of
alankar
Guest
alankar

why this program is not running in turbo C++