Saturday, 6 September 2014

C Program to print the given message N times


Program:

#include<stdio.h>
#include<conio.h>
typedef int count;
void main( )
{
            count c = 1,n;
            printf("\n Enter N value: ");
            scanf("%d", &n);
            A: printf("\n Let US Code in C");
                 c++;
                 if( c<=n)
                      goto A;
             getch();
}

Input/Output:

Enter N value: 5

Let US Code in C

Let US Code in C

Let US Code in C

Let US Code in C

Let US Code in C

0 comments:

Post a Comment