Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
C++ Programs

C++ Programs

Ratings: (0)|Views: 27|Likes:
Published by Saad Ahmed

More info:

Published by: Saad Ahmed on Apr 08, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

02/15/2014

pdf

text

original

 
 
University Of Karachi
C++ Assignment 
 
AND GATE
 
OR GATE
 
NAND GATE
 
NOR GATE
 
XOR GATE
 
XNOR GATE
 
QUARDATIC EQUATION
Syed Saad Ahmed B-0933040B.E 3
rd 
Year Chemical EngineeringSubmitted To:Sir Zamin
 
C++ Assignment 
2012
2
 
Prepared By: Syed Saad Ahmed
| B.E Chemical Engineering
Program no. 1(OR GATE)
#include<stdio.h>#include<conio.h>void main(){clrscr();int a ,b,c;printf("\n\tEnter the first signal: ");scanf("%d",&a);printf("\n\tEnter the second signal: ");scanf("%d",&b);if (a==0 && b==0){c=0;}else{c=1;}printf("\n\tThe logic OR gate of two given signal is: %d",c);getch();}
 
C++ Assignment 
2012
3
 
Prepared By: Syed Saad Ahmed
| B.E Chemical Engineering
Program no. 2(AND GATE)
#include<stdio.h>#include<conio.h>void main(){clrscr();int a=0,b=0,c;printf("\n\tEnter the first signal: ");scanf("%d",&a);printf("\n\tEnter the second signal: ");scanf("%d",&b);if (a==1 && b==1){c=1;}else{c=0;}printf("\n\tThe logic AND gate of two given signal is: %d",c);getch();}

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->