answersLogoWhite

0


Best Answer

#include <iostream>

int main (void)

{

std::cout << "\nBitwise AND (&):\n";

for (int a=0; a<=1; ++a)

for (int b=0; b<=1; ++b)

std::cout << a << " & " << b << " is " << a & b << std::endl; std::cout << "\nLogical AND (&&):\n";

for (int a=0; a<=1; ++a)

for (int b=0; b<=1; ++b)

std::cout << a << " && " << b << " is " << a && b << std::endl;

return 0;

}

User Avatar

Wiki User

โˆ™ 6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write the programme that display truth table of AND gate by using C or C plus plus programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a table that lists activities and the times they happen?

A timetable or programme.


What is a display of data?

A visual display of data is called a chart, table or a graph.


What is the time table of HSC Time Table February 2008?

just display time table


What table is called in Marathi language?

Table is called &quot;เคฎเฅ‡เคœ&quot; (mej) in Marathi language.


What type of fountain makes a good table top display?

A type of fountain that makes a good table top display is statue water fountains that provide excellent design, quality, and service to make your table top display beautiful.


What is a frequency table used for?

To display data


What is Visual display of data?

A visual display of data is called a chart, table or a graph.


How do you say table in Kikuyu language?

Table can be translated into Kikuyu language as metha.


What is a tag when using Html?

A Tag in HTML can be compared to a keyword in any programming language. It instructs the browser about how the subsequent pieces of text must be parsed and displayed. A Tag in HTML is enclosed within the &lt;&gt; symbols. Any text between the &lt;HTML&gt; and &lt;/HTML&gt; tags is considered HTML content and the browser will handle it the way HTML code is to be handled. There are numerous tags available in HTML. Some are * &lt;BR&gt; - Line Break * &lt;HR&gt; - Horizontal Line * &lt;TABLE&gt; - To display a table (Like a spreadsheet with heading &amp; cells) * &lt;FORM&gt; - To display UI forms * etc...


What is the timetable of Diploma 1th semester for msbte exam time table winter 2008?

when r exam time table gone be display. when r exam time table gone be display.


What makes a table top display visually appealing?

Table top displays can vary greatly. Some factors that can make a table top display more visually appealing include color and size. Incorporating animated (exciting) photos can draw in viewers to your display.


To set the alignment of a table on a page display the table tab of dialog box?

table cell dialog box :)