I am new to programming. I want to print SUM with hearts, I got SU but I am unable to print M. Could you please help me with code ?
here is my SU code.
#include<stdio.h>
#include<conio.h>
void main()
{
char i=3;
int j,k;
for(j=0; j<=8; j++) //s
printf("%c",i);
printf("
%c
%c
",i,i);
for(j=0; j<=8; j++)
printf("%c",i);
printf("
");
for(j=0;j<=1; j++)
{
for(k=0; k<=7; k++)
{
printf(" ");
}
printf("%c
",i);
}
for(j=0; j<=8; j++)
printf("%c",i);
printf("
");
for(j=0; j<=7; j++)
{ //u
printf("%c",i);
for(k=0; k<=1; k++)
printf(" ");
printf("%c
",i);}
for(j=0; j<=6; j++)
printf("%c",i);
printf("
");
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…