
top of page


#include <stdio.h>
void main() {
int gc=3;
int gn,sn;
int score=0;
printf("\nEnter secret number : ");
scanf("%d",&sn);
while(gc>0)
{
printf("\nEnter guess number : ");
scanf("%d",&gn);
if(gn==sn)
{
if(gc==3)
{
score=20;
printf("\n---- You score first division ----");
break;
}
else if(gc==2)
{
score=10;
printf("\n---- You score second division ----");
break;
}
else if(gc==1)
{
score=5;
printf("\n---- You score third division ----");
break;
}
}
else
{
if(gn<sn)
{
printf("\nYour guess is to low !!");
//break;
}
else if(gn>sn)
{
printf("\nYour guess is to high !!");
//break;
}
}
gc--;
}
printf("\nYour score : %d",score);
}

Windows Shortcut Keys
1. MINIMIZE ALL THE OPEN TABS
WINDOWS + M OR D
2. VIRTUAL DESKTOP
WINDOWS + CTRL + D
3. OPEN TASKBAR APPS
WINDOWS + LOCATION( START FROM 0)
4. SWITCH TABS
ALT + TAB
5. OPEN FILE MANAGER
WINDOWS + E
5. LOCK SCREEN
WINDOWS + F
5. CAST
WINDOWS + K
5. PROJECT
WINDOWS + P
5. RUN WINDOW
WINDOWS + R
5. SEARCH BAR
WINDOWS + S
bottom of page

