2

#include <stdio.h>

/*
* Windows Update Algorithm
*/

int main()
{
int percent = 1;

while (percent <= 100) {
printf("Working on updates\n");
printf("%i %% complete\n", percent);
printf("Don't turn off your computer\n\n");

if (percent == 30) {
printf("Restarting\n");
break;
}

percent++;
}

return 0;
}

Comments
Add Comment