Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
40 kB
0
Indexable
Never
#include<stdio.h>
#include<conio.h>
int main()
{

    int n,el;
    int ch;

     printf("\t\t\t\t\t MODERN PERODIC TABLE\t\t\t\n");
    printf("\n _______________________________________________________________________________________________________ \n");


    do
    {
        printf("\n 1. To know about elements \n 2. To know about all Alkali Metals \n 3. To know about all Alkaline earth Metals ");
        printf(  "\n 4. To know about all Metalloids \n 5. To know about all Non-Metals ");
        printf("\n 6. To know about all Halogens \n 7. To know about all Nobel gases \n 8. To know about all Lanthanides \n 9. To know about all Actinides\n\n --->\t  ");
        scanf("%d",&n);

      switch(n)
      {

        case 1:

            printf("\n Enter the atomic number of the element you want to know about from 1 to 118 \n\n--->\t");
            scanf("%d",&el);


            if (el==1)
            {
            printf("\n Name          : Hydrogen");
            printf("\n Symbol        : H");
            printf("\n atomic number : 1");
            printf("\n atomic mass   : 1.0079 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^1");
            }


            else if(el==2)
            {
            printf("\n Name          : Helium");
            printf("\n Symbol        : He");
            printf("\n atomic number : 2");
            printf("\n atomic mass   : 4.0026 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2");
            }

            else if(el==3)
            {
            printf("\n Name          : Lithium");
            printf("\n Symbol        : Li");
            printf("\n atomic number : 3");
            printf("\n atomic mass   : 6.941 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^1");

            }


            else if(el==4)
            {
            printf("\n Name          : Beryllium");
            printf("\n Symbol        : Be");
            printf("\n atomic number : 4");
            printf("\n atomic mass   : 9.0122 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2");
            }

            else if(el==5)
            {
            printf("\n Name          : Boron");
            printf("\n Symbol        : B");
            printf("\n atomic number : 5");
            printf("\n atomic mass   : 10.811 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^1");

            }

            else if(el==6)
            {
            printf("\n Name          : Carbon");
            printf("\n Symbol        : C");
            printf("\n atomic number : 6");
            printf("\n atomic mass   : 12.0107 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^2");

            }

            else if(el==7)
            {
            printf("\n Name          : Nitrogen");
            printf("\n Symbol        : N");
            printf("\n atomic number : 7");
            printf("\n atomic mass   : 14.0067 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^3");
            }

            else if(el==8)
            {
            printf("\n Name          : Oxygen");
            printf("\n Symbol        : O");
            printf("\n atomic number : 8");
            printf("\n atomic mass   : 15.9994 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^4");
            }

            else if(el==9)
            {
            printf("\n Name          : Fluorine");
            printf("\n Symbol        : F");
            printf("\n atomic number : 9");
            printf("\n atomic mass   : 18.9984 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^5");

            }

            else if(el==10)
            {
            printf("\n Name          : Neon");
            printf("\n Symbol        : Ne");
            printf("\n atomic number : 10");
            printf("\n atomic mass   : 20.1719 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6");
            }

            else if(el==11)
            {
            printf("\n Name          : Sodium");
            printf("\n Symbol        : Na");
            printf("\n atomic number : 11");
            printf("\n atomic mass   : 22.9897 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^1");
            }


            else if(el==12)
            {
            printf("\n Name          : Magnesium");
            printf("\n Symbol        : Mg");
            printf("\n atomic number : 12");
            printf("\n atomic mass   : 24.305 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2");

            }


            else if(el==13)
            {
            printf("\n Name          : Aluminium");
            printf("\n Symbol        : Al");
            printf("\n atomic number : 13");
            printf("\n atomic mass   : 26.9815 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^1");
            }


            else if(el==14)
            {
            printf("\n Name          : Silicon");
            printf("\n Symbol        : Si");
            printf("\n atomic number : 14");
            printf("\n atomic mass   : 28.0855 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^2");
            }

            else if(el==15)
            {
            printf("\n Name          : Phosphorus");
            printf("\n Symbol        : P");
            printf("\n atomic number : 15");
            printf("\n atomic mass   : 30.9738 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^3");
            }

            else if(el==16)
            {
            printf("\n Name          : sulphur");
            printf("\n Symbol        : S");
            printf("\n atomic number : 16");
            printf("\n atomic mass   : 32.065 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^4");

            }


            else if(el==17)
            {
            printf("\n Name          : Chlorine");
            printf("\n Symbol        : Cl");
            printf("\n atomic number : 17");
            printf("\n atomic mass   : 35.453 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^5");
            }

            else if(el==18)
            {
            printf("\n Name          : Argon");
            printf("\n Symbol        : Ar");
            printf("\n atomic number : 18");
            printf("\n atomic mass   : 39.948 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 ");

            }

            else if(el==19)
            {
            printf("\n Name          : Potassium");
            printf("\n Symbol        : K");
            printf("\n atomic number : 19");
            printf("\n atomic mass   : 39.0983 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^1 4s ^1");
            }

            else if(el==20)
            {
            printf("\n Name          : Calcium");
            printf("\n Symbol        : Ca");
            printf("\n atomic number : 20");
            printf("\n atomic mass   : 40.078 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^1 4s^2");

            }


            else if(el==21)
            {
            printf("\n Name          : Scandium");
            printf("\n Symbol        : Sc");
            printf("\n atomic number : 21");
            printf("\n atomic mass   : 44.9559 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^1");

            }


            else if(el==22)
            {
            printf("\n Name          : Titaniuam");
            printf("\n Symbol        : Ti");
            printf("\n atomic number : 22");
            printf("\n atomic mass   : 47.867 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^2");
            }


            else if(el==23)
            {
            printf("\n Name          : Vanadium");
            printf("\n Symbol        : V");
            printf("\n atomic number : 23");
            printf("\n atomic mass   : 50.9415 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^3");
            }

            else if(el==24)
            {
            printf("\n Name          : Chromium");
            printf("\n Symbol        : Cr");
            printf("\n atomic number : 24");
            printf("\n atomic mass   : 51.9961 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^1 3d^5");

            }

            else if(el==25)
            {
            printf("\n Name          : Manganese");
            printf("\n Symbol        : Mn");
            printf("\n atomic number : 25");
            printf("\n atomic mass   : 54.938 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^5");
            }


            else if(el==26)
            {
            printf("\n Name          : Iron");
            printf("\n Symbol        : Fe");
            printf("\n atomic number : 26");
            printf("\n atomic mass   : 55.845 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^6");
            }


            else if(el==27)
            {
            printf("\n Name          : Cobalt");
            printf("\n Symbol        : Co");
            printf("\n atomic number : 27");
            printf("\n atomic mass   : 58.9332 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^7");
            }


            else if(el==28)
            {
            printf("\n Name          : Nickel");
            printf("\n Symbol        : Ni");
            printf("\n atomic number : 28");
            printf("\n atomic mass   : 58.6934 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^8");
            }


            else if(el==29)
            {
            printf("\n Name          : Copper");
            printf("\n Symbol        : Cu");
            printf("\n atomic number : 29");
            printf("\n atomic mass   : 63.546 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^1 3d^10");
            }


            else if(el==30)
            {
            printf("\n Name          : Zinc");
            printf("\n Symbol        : Zn");
            printf("\n atomic number : 30");
            printf("\n atomic mass   : 65.39 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10");
            }


            else if(el==31)
            {
            printf("\n Name          : Gallium");
            printf("\n Symbol        : Ga");
            printf("\n atomic number : 31");
            printf("\n atomic mass   : 69.723 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^1");
            }


            else if(el==32)
            {
            printf("\n Name          : Germanium");
            printf("\n Symbol        : Ge");
            printf("\n atomic number : 32");
            printf("\n atomic mass   : 72.64 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^2");
            }


            else if(el==33)
            {
            printf("\n Name          : Arsenic");
            printf("\n Symbol        : As");
            printf("\n atomic number : 33");
            printf("\n atomic mass   : 74.9216 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^3");
            }


            else if(el==34)
            {
            printf("\n Name          : Selenium");
            printf("\n Symbol        : Se");
            printf("\n atomic number : 34");
            printf("\n atomic mass   : 78.96 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^4");
            }


            else if(el==35)
            {
            printf("\n Name          : Bromine");
            printf("\n Symbol        : Br");
            printf("\n atomic number : 35");
            printf("\n atomic mass   : 79.904 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^4");
            }


            else if(el==36)
            {
            printf("\n Name          : Krypton");
            printf("\n Symbol        : Kr");
            printf("\n atomic number : 36");
            printf("\n atomic mass   : 83.8 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6");
            }


            else if(el==37)
            {
            printf("\n Name          : Rubidium");
            printf("\n Symbol        : Rb");
            printf("\n atomic number : 37");
            printf("\n atomic mass   : 85.4678 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1");
            }

            else if(el==38)
            {
            printf("\n Name          : Strontium");
            printf("\n Symbol        : Sr");
            printf("\n atomic number : 38");
            printf("\n atomic mass   : 87.62 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2");
            }

            else if(el==39)
            {
            printf("\n Name          : Yttrium");
            printf("\n Symbol        : Y");
            printf("\n atomic number : 39");
            printf("\n atomic mass   : 88.9059 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^1");
            }


            else if(el==40)
            {
            printf("\n Name          : Ziconium");
            printf("\n Symbol        : Zr");
            printf("\n atomic number : 40");
            printf("\n atomic mass   : 91.2224 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^2");
            }


            else if(el==41)
            {
            printf("\n Name          : Niobium");
            printf("\n Symbol        : Nb");
            printf("\n atomic number : 41");
            printf("\n atomic mass   : 92.9064 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 4d^4");
            }



            else if(el==42)
            {
            printf("\n Name          : Molybdenum");
            printf("\n Symbol        : Mo");
            printf("\n atomic number : 42");
            printf("\n atomic mass   : 95.94 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 4d^5");

            }


            else if(el==43)
            {
            printf("\n Name          : Technetium");
            printf("\n Symbol        : Tc");
            printf("\n atomic number : 43");
            printf("\n atomic mass   : 98 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^5");

            }


            else if(el==44)
            {
            printf("\n Name          : Ruthenium");
            printf("\n Symbol        : Ru");
            printf("\n atomic number : 44");
            printf("\n atomic mass   : 101.07 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 4d^7");

            }


            else if(el==45)
            {
            printf("\n Name          : Rhodium");
            printf("\n Symbol        : Rh");
            printf("\n atomic number : 45");
            printf("\n atomic mass   : 102.9055 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 4d^8");
            }

            else if(el==46)
            {
            printf("\n Name          : Palladium");
            printf("\n Symbol        : pd");
            printf("\n atomic number : 46");
            printf("\n atomic mass   : 106.42 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 4d^10");
            }


            else if(el==47)
            {
            printf("\n Name          : Silver");
            printf("\n Symbol        : Ag");
            printf("\n atomic number : 47");
            printf("\n atomic mass   : 107.8682 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 4d^10");

            }


            else if(el==48)
            {
            printf("\n Name          : Cadmium");
            printf("\n Symbol        : cd");
            printf("\n atomic number : 48");
            printf("\n atomic mass   : 112.411 u");
            printf("\n block         : d-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10");
            }

            else if(el==49)
            {
            printf("\n Name          : Indium");
            printf("\n Symbol        : In");
            printf("\n atomic number : 49");
            printf("\n atomic mass   : 114.818 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^1");
            }

            else if(el==50)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==51)
            {
            printf("\n Name          : Antimony");
            printf("\n Symbol        : Sb");
            printf("\n atomic number : 51");
            printf("\n atomic mass   : 121.76 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^3");
            }

               else if(el==52)
            {
            printf("\n Name          : Tellurium");
            printf("\n Symbol        : Te");
            printf("\n atomic number : 52");
            printf("\n atomic mass   : 127.6 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^4");
            }

               else if(el==53)
            {
            printf("\n Name          : Iodine");
            printf("\n Symbol        : I");
            printf("\n atomic number : 53");
            printf("\n atomic mass   : 136.9045 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^5");
            }

               else if(el==54)
            {
            printf("\n Name          : Xenon");
            printf("\n Symbol        : Xe");
            printf("\n atomic number : 54");
            printf("\n atomic mass   : 131.293 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6");
            }

               else if(el==55)
            {
            printf("\n Name          : Cesium");
            printf("\n Symbol        : Ce");
            printf("\n atomic number : 55");
            printf("\n atomic mass   : 132.9055 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^1");
            }

               else if(el==56)
            {
            printf("\n Name          : Barium");
            printf("\n Symbol        : Ba");
            printf("\n atomic number : 56");
            printf("\n atomic mass   : 137.327 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^2");
            }

               else if(el==57)
            {
            printf("\n Name          : Lanthanum");
            printf("\n Symbol        : La");
            printf("\n atomic number : 57");
            printf("\n atomic mass   : 138.9055 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^2 5d^1");
            }

               else if(el==58)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==59)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==60)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==61)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==62)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==63)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==64)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==65)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==66)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }


               else if(el==67)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==68)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else if(el==69)
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }

               else
            {
            printf("\n Name          : Tin");
            printf("\n Symbol        : Sn");
            printf("\n atomic number : 50");
            printf("\n atomic mass   : 118.71 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^2");
            }


            break;

        case 2:

            printf("\t\t-------------ALKALI METALS---------------\n\n");

            printf("\n Name          : Lithium");
            printf("\n Symbol        : Li");
            printf("\n atomic number : 3");
            printf("\n atomic mass   : 6.941 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^1 \n\n");

            printf("\n Name          : Sodium");
            printf("\n Symbol        : Na");
            printf("\n atomic number : 11");
            printf("\n atomic mass   : 22.9897 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^1 \n\n");

            printf("\n Name          : Potassium");
            printf("\n Symbol        : K");
            printf("\n atomic number : 19");
            printf("\n atomic mass   : 39.0983 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^1 4s ^1\n\n");

            printf("\n Name          : Rubidium");
            printf("\n Symbol        : Rb");
            printf("\n atomic number : 37");
            printf("\n atomic mass   : 85.4678 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^1 \n\n");

            printf("\n Name          : Cesium");
            printf("\n Symbol        : Ce");
            printf("\n atomic number : 55");
            printf("\n atomic mass   : 132.9055 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^1\n\n");




            break;

        case 3:

             printf("\t\t-------------ALKALINE EARTH METALS---------------\n\n");
            printf("\n Name          : Beryllium");
            printf("\n Symbol        : Be");
            printf("\n atomic number : 4");
            printf("\n atomic mass   : 9.0122 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2\n\n");

            printf("\n Name          : Magnesium");
            printf("\n Symbol        : Mg");
            printf("\n atomic number : 12");
            printf("\n atomic mass   : 24.305 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2\n\n");

            printf("\n Name          : Calcium");
            printf("\n Symbol        : Ca");
            printf("\n atomic number : 20");
            printf("\n atomic mass   : 40.078 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^1 4s^2\n\n");

            printf("\n Name          : Strontium");
            printf("\n Symbol        : Sr");
            printf("\n atomic number : 38");
            printf("\n atomic mass   : 87.62 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2\n\n");

            printf("\n Name          : Barium");
            printf("\n Symbol        : Ba");
            printf("\n atomic number : 56");
            printf("\n atomic mass   : 137.327 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^2\n\n");




            break;

        case 4:
             printf("\t\t-------------METALLOIDS---------------\n\n");

            printf("\n Name          : Boron");
            printf("\n Symbol        : B");
            printf("\n atomic number : 5");
            printf("\n atomic mass   : 10.811 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^1\n\n");

            printf("\n Name          : Silicon");
            printf("\n Symbol        : Si");
            printf("\n atomic number : 14");
            printf("\n atomic mass   : 28.0855 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^2\n\n");

            printf("\n Name          : Germanium");
            printf("\n Symbol        : Ge");
            printf("\n atomic number : 32");
            printf("\n atomic mass   : 72.64 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^2\n\n");

            printf("\n Name          : Arsenic");
            printf("\n Symbol        : As");
            printf("\n atomic number : 33");
            printf("\n atomic mass   : 74.9216 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^3\n\n");


            printf("\n Name          : Antimony");
            printf("\n Symbol        : Sb");
            printf("\n atomic number : 51");
            printf("\n atomic mass   : 121.76 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^3\n\n");

            printf("\n Name          : Tellurium");
            printf("\n Symbol        : Te");
            printf("\n atomic number : 52");
            printf("\n atomic mass   : 127.6 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^4\n\n");

            break;

        case 5:
             printf("\t\t------------NON METALS---------------\n\n");


            printf("\n Name          : Carbon");
            printf("\n Symbol        : C");
            printf("\n atomic number : 6");
            printf("\n atomic mass   : 12.0107 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^2\n\n");

            printf("\n Name          : Nitrogen");
            printf("\n Symbol        : N");
            printf("\n atomic number : 7");
            printf("\n atomic mass   : 14.0067 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^3\n\n");

            printf("\n Name          : Oxygen");
            printf("\n Symbol        : O");
            printf("\n atomic number : 8");
            printf("\n atomic mass   : 15.9994 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^4\n\n");


            printf("\n Name          : Phosphorus");
            printf("\n Symbol        : P");
            printf("\n atomic number : 15");
            printf("\n atomic mass   : 30.9738 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^3\n\n");

            printf("\n Name          : sulphur");
            printf("\n Symbol        : S");
            printf("\n atomic number : 16");
            printf("\n atomic mass   : 32.065 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^4\n\n");

            printf("\n Name          : Selenium");
            printf("\n Symbol        : Se");
            printf("\n atomic number : 34");
            printf("\n atomic mass   : 78.96 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^4\n\n");


            break;

        case 6:
             printf("\t\t-------------HALOGENS---------------\n\n");


            printf("\n Name          : Fluorine");
            printf("\n Symbol        : F");
            printf("\n atomic number : 9");
            printf("\n atomic mass   : 18.9984 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^5\n\n");

            printf("\n Name          : Chlorine");
            printf("\n Symbol        : Cl");
            printf("\n atomic number : 17");
            printf("\n atomic mass   : 35.453 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^5\n\n");

            printf("\n Name          : Bromine");
            printf("\n Symbol        : Br");
            printf("\n atomic number : 35");
            printf("\n atomic mass   : 79.904 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^4\n\n");

            printf("\n Name          : Iodine");
            printf("\n Symbol        : I");
            printf("\n atomic number : 53");
            printf("\n atomic mass   : 136.9045 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^5\n\n");


            break;

        case 7:

             printf("\t\t-------------INERT GASES---------------\n\n");
            printf("\n Name          : Helium");
            printf("\n Symbol        : He");
            printf("\n atomic number : 2");
            printf("\n atomic mass   : 4.0026 u");
            printf("\n block         : s-block");
            printf("\n configuration : 1s^2\n\n");

            printf("\n Name          : Neon");
            printf("\n Symbol        : Ne");
            printf("\n atomic number : 10");
            printf("\n atomic mass   : 20.1719 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6\n\n");

            printf("\n Name          : Argon");
            printf("\n Symbol        : Ar");
            printf("\n atomic number : 18");
            printf("\n atomic mass   : 39.948 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 \n\n");

            printf("\n Name          : Krypton");
            printf("\n Symbol        : Kr");
            printf("\n atomic number : 36");
            printf("\n atomic mass   : 83.8 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6\n\n");


            printf("\n Name          : Xenon");
            printf("\n Symbol        : Xe");
            printf("\n atomic number : 54");
            printf("\n atomic mass   : 131.293 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6\n\n");




            break;

        case 8:
             printf("\t\t-------------LANTHANIDES---------------\n\n");


            printf("\n Name          : Lanthanum");
            printf("\n Symbol        : La");
            printf("\n atomic number : 57");
            printf("\n atomic mass   : 138.9055 u");
            printf("\n block         : p-block");
            printf("\n configuration : 1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10 4p^6 5s^2 4d^10 5p^6 6s^2 5d^1\n\n");





            break;

        case 9:

             printf("\t\t-------------ACTANIDES---------------\n\n");
            break;
        default :
            printf("Invalid choice ");
            break;

        }

        printf("\n _______________________________________________________________________________________________________ \n");

        printf("\n DO YOU WANT TO CONTINUE TO KNOW ABOUT OTHER ELEMENT ? \n 1. 1 for Yes \n 2. 2 for No \n \n --->\t");
        scanf("%d",&ch);


        printf("\n ----------------------------------------\n");

    }

    while (ch == 1);


    return 0;
}
Leave a Comment