Code:
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<time.h>
#define BROJ_POKUSAJA 6
void main(void)
{
int n,i,k,xs,ys,xu,yu,po;
textbackground(15);
textmode(3) ;
clrscr();
textcolor(0) ;
cprintf("\n\n UNOS: ");
xu=wherex()+2;
yu=wherey();
textbackground(2);
cprintf(" ");
textbackground(15);
gotoxy(3,11) ;
cprintf("statusna linija ");
xs=wherex();
ys=wherey();
textbackground(2);
for(i=1;i<50;i++)cprintf(" ");
for(i=1;i<=BROJ_POKUSAJA;i++)
{
gotoxy(xu,yu);
cprintf(" ");
gotoxy(xu,yu);
scanf("%d",&n);
gotoxy(xs+3*(i-1)+2,ys);
if(po>n) cptintf(" ");//////////////////////////////NAZNACENI RED//////////////////////////////////////////
if(po<n) cprintf("<");
if(po==n)
{
cprintf("=");
textbackground(15);
gotoxy(35,18);
textcolor(0);
cprintf("BRAVO");
gotoxy(1,25);
return;
}
}
textbackground(15);
gotoxy(20,18);
textcolor(0);
cprintf("ZAO MI JE, POKUSAJTE PONOVO");
gotoxy(1,25);
getch();
}
Pokusaj da u NAZNACENOM REDU promenis CPTINTF promenis u CPRINTF