Skip to main content

Printing Valentine In Shape Of heart

#include<iostream>
#include<conio.h>
void main()
{
clrscr();
int i,j,k;
for(i=0;k==11;i<=90;i+=10;k+10)
{
printf("/r/t/t/t");
for(j=i;j=22&&j<=24||(j>=26&&j<=28)||(j>=31&&j<=39)||(j>=41&&j<=49)||(j>=52&&j<=58)||(j>=63&&j<=67)||(j>=74&&j<=76)||(j==85))
{
textcolor(red);

printf("*");
}

else
{
textcolor(green);
printf(".");
}
printf("/n");
}
printf("/r/t/t  ");
cprintf("happy valentine/n");
getch();
}

Comments

Popular posts from this blog

C++ Program Finding The Absolute Value

#include<iostream> using namespace std; int main() { cout<<" enter any number"; cin>>num; if(num>0) { cout<<"The absolute value of number is:"<< num; } else { cout<<"The absolute value of number is :"<< -(num); } return 0; } OUTPUT Enter Any number: 2 The absolute value of number is 2