Showing posts with label Computer programming at TCCI. Show all posts
Showing posts with label Computer programming at TCCI. Show all posts

Thursday, February 27, 2020

Switch in C Language - tccicomputercoaching.com


What is Switch?

Switch is used to select any one from multiple choice. The switch statement allows us to execute one code block among many alternatives.


A switch statement tests the value of a choice variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that particular case is executed. Each case in a block of a switch has a different name/number which is referred to as an identifier.

Syntax:

switch(variable)

{

case lable1:

      statement:

      break;

case lable2:

      statement:

      break;

case lable3:

       statement:

       break;

default:

     statement:

     break;

}
Example:

void main()

{

int ch;

clrscr();

       // printf ("enter ypour choice\n");

        Printf ("1 paneer makhni \n");

         printf ("2 paneeer bhurji \n");

         printf ("3 paneer mutter");

         printf ("\nenter your choice");

     scanf ("%d", &ch);

switch ( ch )

{

case 1:

      printf ("Your paneer makhni is ready\n");

      break;

case 2:

        printf ("Your paneer bhurji is ready \n");

        break;

case 3:

         printf("Your paneer mutter is ready\n");

         break;

default:

          printf("no choice");

           break;

}

     getch();

}

OP:

enter your choice:

2

Your paneer  bhurji is ready

To learn More about C Programming Langauge at TCCI .

Call @ 9825618292

Visit @ http://tccicomputercoaching.com/

Thursday, December 19, 2019

What are the benefits of learning Code? tccicomputercoaching.com


These days the tech industry is in most demand. Specially Computers and code are everywhere. Schools, hospitals—all of these institutions rely on digital infrastructure—and that means job opportunities for the coders that speak their language.

Learning to code will take care of that problem. Then it’s time to sit back and watch the opportunities roll in and unfold.




Computer programming forces one to think in a logical manner to get the program working as computers are just machines with no intelligence whatsoever unless we program the logic into them.

TCCI Computer Institute makes students learn Coding in easy way. Student can enjoy teaching session of programming at TCCI. We teach various Programming Languages like C, C++, Java, Python, Database Management, Python, Data Structure HTML,CSS, Java Script, .Net , PHP, System Programming Compiler Design, Boot Strap, Angular Js etc.

We conduct lectures at Bopal and Satellite in Ahmedabad.
For more information about Programming Languages at TCCI.

call us@ 98256 18292.

visit us @ http://tccicomputercoaching.com/