Sunday, 21 January 2018

Program for Heart Symbol


#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
clrscr();
gotoxy(33,9);
printf("  %c%c%c       %c%c%c\n",3,3,3,3,3,3);
gotoxy(32,10);
printf(" %c     %c   %c     %c\n",3,3,3,3);
gotoxy(32,11);
printf(" %c       %c       %c\n",3,3,3);
j=11;
for(i=33;i<=40;i++)
{
gotoxy(i,j);
printf("%c",3);
j++;
}
j=19;
for(i=41;i<=48;i++)
{
gotoxy(i,j);
printf("%c",3);
j--;
}
getch();
}


Related Posts:

  • Two-Dimentional Arrays Two-Dimentional Arrays So far we have discussed the array variable that can store a list of values .There will be situation where a table of values will have to be stored.Consider the following data table, which shows t… Read More
  • Unions Unions  As array represent group of data items that belong to the same type. C supports  a  constructed data type known as structure and unino, which are methods for packing data of different types. … Read More
  • Initialization of Arrays Initialization of Arrays We can initialize the elements of the array in the same way as the ordinary variables when they are declared.The general form of initialization of array is:  static  type  array-… Read More
  • Pointers And Structures Pointers And Structures  We know that the name of an array stands for the address of its zeroth element.The same thing is true of the names of  arrays of structure variables.Suppose product is an array variabl… Read More
  • Introduction To Storage Classes Introduction To Storage Classes strong class provides information about their location and visibility.The storage class decides the portion of the program within which the variables are recognized. A variables storage cl… Read More

0 comments:

Post a Comment