Il-Ġimgħa, Jannar 11, 2008

Logic Gates Combinations NAND, NOR & XOR


NAND Gate
Very similar and basic tp the AND gate. It only differs in the final output. The NAND outputs are exactly the opposite of the AND gate. This is achieved by using a NOT at the output of the AND.

NOR Gate
This too is very basic to the OR gate. The only difference is that the NOR gate inverts the final output, this is achieved by using a NOT gate at the output.

Exclusive OR Gate ( XOR )
The XOR gate is a combination of AND and OR gates.

It-Tnejn, Jannar 07, 2008

Very Simple C.Sharp Programming for noobs

using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication4
{//namespace
class Program
{//class
static void Main(string[] args)
{//main
Console.WriteLine("PRESS ENTER TO CONTINUE");
Console.ReadLine();
string name, surname;
int age;
Console.WriteLine("Please input name");
name = Console.ReadLine();
Console.WriteLine("Please input surname");
surname = Console.ReadLine();
Console.WriteLine("Please input age");
age = Convert.ToInt32(Console.ReadLine());
Console.ReadLine();
Console.WriteLine("Your name and surname are {0} {1} respectively. You are {2} years old.", name, surname, age);
Console.ReadLine();
}
}
}