Friday, July 30, 2021

C Programming for Covaccine center

 #include <stdio.h>

int main()

{

    char n[30];

    char b[30];

    int i,vi,age,dosage;

    printf("Madukkur covaccine centre\n");

    for( i=10102;i<=10103;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    printf("Aalathur covaccine centre\n");

    for( i=10100;i<=10101;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    printf("Aalamballam covaccine centre\n");

    for( i=10100;i<=10101;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    printf("Vikramam covaccine centre\n");

    for( i=101010;i<=101011;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    printf("Athivetti covaccine centre\n");

    for( i=10000;i<=10001;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    printf("Sivakollai covaccine centre\n");

    for( i=1001;i<=1002;i=i+1)

    {

     printf("enter your name:");

     scanf("%s",&n);

     printf("enter your voter id no:");

     scanf("%d",&vi);

     printf("enter your age:");

     scanf("%d",&age);

     printf("enter your blood group:");

     scanf("%s",&b);

     printf("enter your no of dosage:");

     scanf("%d",&dosage);

     if(dosage=1)

     {

     printf("vaccination completed\n");

     printf("August 6th is your next dosage day\n");

     }

     else

     {

        printf("vaccination completed\n");

     }

    }

    return 0;

}




























USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...