https://youtu.be/WE9dvubcQns

Program to show if-else control statement

if-else control statement



   /* decision control statements

	     if-else
     */


  #include<stdio.h>
  #include<conio.h>
     void main ()
     {
       int a, b;
       clrscr();
       printf("Pls enter the value of first no.\n ");
       scanf("%d",&a);
       printf("Pls enter the value of second no. \n");
       scanf("%d",&b);

       if((a==b) && (a=19))
       {
	  printf("The entered values are equal to each other\n");

       }  // end of if

       else
       {  printf("The entered values are not equal to each other\n");

       }  // end of else

	printf("This the decision control statement (if-else) ");
	getch();

	}
if-else 
if-else 

Output

if-else 




Facebook Likes

Youtube