Header Ads Widget

A C program to print your name 1000 times

 #include<stdio.h>

void main ()

{

int s;

for(s=0; s<=1000; s++)

{

printf("your name \n");

}

}


Post a Comment

4 Comments

  1. https://www.y8.com/games/moto_x3m_winter

    ReplyDelete
  2. #include
    void main ()
    {
    int i,j,flag;
    for(i=1;i<=100;i++)
    {
    flag=0;
    for(j=1;j<=i;j++)
    {
    if(i%j==0)
    {
    flag++;
    }
    }
    if(flag==2)
    {
    printf("%d\t",i);
    }
    }
    }


    // display prime number from 1 to 100

    ReplyDelete
  3. #include
    void main()
    {
    int a,i,b,c=0;
    printf("enter the value of a:");
    scanf("%d",&a);
    for(i=2;i<=a/2;i++)
    {
    if(a%i==0)
    {
    c=1;
    break;
    }
    }
    if(c==0)
    {

    printf("the number is prime number");
    }
    else
    {
    printf("the number is not prime number");
    }
    }

    ReplyDelete
  4. pyramid

    #include
    void main()
    {
    int i,j,k,l;
    for(i=1;i<=5;i++)
    {
    for(j=1;j<=i;j++)
    {
    printf("-");
    }
    for(k=1;k<=6-i;k++)
    {
    printf("%d",k);
    }
    for(l=5-i;l>=1;l--)
    {
    printf("%d",l);
    }
    printf("\n");
    }
    }

    ReplyDelete