ive got this

#include <stdio.h>
#include <unistd.h>

int main()
{
int a;
int b;
    a = 3;
    b = 30;
    until (a == b)
    
    printf("%d\n second ", a);
    a++;
    usleep ( 990000 );
    
printf("\n\n hvala ker usate ta pgr \n\n");
    return 0;

}

but i got this error when trying to compile

until.c: In function ‘main’:
until.c:12: error: syntax error before ‘printf’

whats wrong?does until loop exists in c?

No it dose not exist. Replace it with

do
{
   /* your code going here */
} while(a<b);

thanks

worked like charm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.