C”
SUBMITTED BY
Y KRUSHNA (15241A0258)
Hyderabad-500090
I
ACKNOWLEDGEMENT
.We are thankful to PARA RAJESH, Department of CSE (CPDS) and who
has spared valuable time and append novel ideas to guide us in limelight. I am
indebted to them without whom I would not have culminated to pinnacle of the
project.
Y KRUSHNA (15241A0258)
II
CONTENTS
OVERVIEW OF C
SYSTEM REQUIREMENTS
CODING. . . .
OUTPUT SCREENS. . .
BIBILIOGRAPHY…
OVERVIEW OF C
III
C is a general-purpose, high-level language that was originally
computer in 1972.
The UNIX operating system, the C compiler, and essentially all UNIX
Easy to learn
Structured language
SYSTEM REQUIREMENTS
Hardware:
IV
Minimum Requirements:
One of the following processors:
Intel® Pentium® 4 processor family and higher
Intel(R) Xeon Phi(TM) coprocessor
Non Intel® processors compatible with the above processors
Software:
Minimum Requirements:
One of the following operating systems:
Microsoft* Windows* 8, 8.1
Microsoft* Windows* 7 SP1
Microsoft* Windows* Server 2012
Microsoft* Windows* Server 2008 SP2 (IA-32 only)
Microsoft* Windows* Server 2008 R2 SP1
Microsoft* Windows* HPC Server 2008
One of the following compilers:
Intel(R) C++ Compiler 13.1 (Intel(R) Parallel Studio XE 2013
SP1) and higher
Microsoft* Visual C++ 10.0 (Microsoft* Visual Studio* 2010,
Windows* OS only) and higher
V
Playing the Game
This game is simple and can be played by anyone. The computer
generates a random number between 0 and 50. We have 5
chances to find out the random number generated by the
computer. However, the computer tells us if the number is either
more than or less than the entered number. Good Luck!!!
VI
C SOURCE CODE
//guess d no
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
int count=5,n,ch,index=0;
char select;
clrscr();
randomize();
do
count=5;
textcolor(MAGENTA);
textattr(LIGHTRED);
printf("\n");
VII
n=random(50);
while(count!=0)
index=0;
textattr(YELLOW);
textcolor(GREEN);
printf("%d",count);
textcolor(LIGHTBLUE);
scanf("%d",&ch);
if(ch==n)
cprintf("\nCORRECT xD");
index=1;
break;
else if(ch>n)
else
count--;
VIII
}
if(index==0)
cscanf("%c",&select);
clrscr();
while(select=='y'||select=='Y');
getch();
IX
SCREEN SHOTS
X
XI
BIBILIOGRAPHY
http://www.google.com/
http://en.wikipedia.org
www.bOtskOOL.com
XII