كود PHP:
#include<stdio.h>
int main()
{
int x1=0,x2;
printf("Enter the time:");scanf("%d",&x2);
while(x1<x2)
{
sleep(1);
printf("\n %d from %d\n",x1,x2);
if(x1==x2)
system("reboot");
x1++;
}
}
اترك تعليق: