Computer Science, asked by tanushreeshankar, 11 months ago

how to write a program for this in c

Attachments:

Answers

Answered by zip1819
1

#include<stdio.h>

void main()

{

int a,b,c,y;

printf("enter the value of A");scanf("%d",&a);

printf("\nenter the value of B");scanf("%d",&b);

printf("\nenter the value of C");scanf("%d",&c);

y=((a && b) || (a && c)|| (b && c))

prinntf("\n the value of Y is %d",y);

}

Answered by Soñador
0

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int a, b, c,Y;

cout<<"\nEnter first number";

cin>>a;

cout<<"\nEnter second number";

cin>>b;

cout<<"\nEnter third number";

cin>>c;

}

Y=(a&&b) ¦¦ (a&&c) ¦¦ (b&&c);

cout<<Y;

getch();

}

Similar questions