Friday, November 11, 2016

C program to Blink a Text on screen.


#include<stdio.h>
#include<Windows.h>

int main(){
    int i;
    for(i=0; i<10; i++)
    {
      printf(".....WEL COME.....");
      Sleep(500);
      system("cls");
      Sleep(500);
    }
    getch();
    return 0;
}


Following Text will Blink on output screen:

..... WEL COME .....




7 comments:

  1. Replies
    1. Thanks for appreciating and referring this blog.

      Delete
  2. This program are execute in dos then program are run but other application not support it.So can you check my coding and suggest me what are the changes at my program
    this is a coding:-
    #include
    #include
    void main () {
    int i=0;
    clrscr();
    while (i<=15)
    {
    textcolor(i+BLINK);
    cprintf("\nLaxmi");
    i=i+1;
    getch();
    }
    }

    ReplyDelete
    Replies
    1. Pl. add complete code so that we can find errors.

      Delete
  3. Replies
    1. Dear Shreyansh,
      Thank you for referring my blog. Enjoy the power of online learning.
      With best wishes,

      Delete