// conditions are
// if(a>4) then x=a+8
// else x=a+5
void main()
{
int a,x;
clrscr();
printf("Enter the value of a");
scanf("%d",&a);
x=(a>4)? a+8:a+5;
printf(" %d",x);
getch();
}
// if(a>4) then x=a+8
// else x=a+5
void main()
{
int a,x;
clrscr();
printf("Enter the value of a");
scanf("%d",&a);
x=(a>4)? a+8:a+5;
printf(" %d",x);
getch();
}
No comments:
Post a Comment