Tuesday, 29 September 2015

C Program to find the minimum value of the two value using conditional operator



/*C Program to find the minimum value of the two value using conditional operator*/
#include<stdio.h>
main()
{
      int num1,num2,min;
      printf("\n Enter the first value");
      scanf("%d",&num1);
      printf("\n Enter the Second value");
      scanf("%d",&num2);
      min=(num1<=num2)?(num1):(num2);
      printf("The minimum Value from %d and %d is %d",num1,num2,min);
}

1 comment:

  1. Play CSGO:GO Gambling | Shootercasino.com
    CSGO Gambling 카지노 is a trusted betting site that offers CSGO skins and casino games. Learn more 더킹카지노 about CSGO gambling at 188bet Shootercasino.

    ReplyDelete