// Online C compiler to run C program online
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include<sys/wait.h>
#include<stdlib.h>
int main()
{
int pid;
pid=fork();
if(pid<0)
{
}
else if(pid==0)
{
execlp("PESCE","AI&ML",NULL);
}
else
{
printf("\n process Id is :%d\n",getpid
()); wait(NULL);
}
}
Ly8gT25saW5lIEMgY29tcGlsZXIgdG8gcnVuIEMgcHJvZ3JhbSBvbmxpbmUKI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzeXMvdHlwZXMuaD4KI2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZTxzeXMvd2FpdC5oPgojaW5jbHVkZTxzdGRsaWIuaD4KaW50IG1haW4oKQp7CiAgICBpbnQgcGlkOwogICAgcGlkPWZvcmsoKTsKICAgIGlmKHBpZDwwKQogICAgewogICAgICAgIHByaW50ZigiZm9yayBmYWlsZWRcbiIpOwogICAgICAgIGV4aXQoMSk7CiAgICB9CiAgICBlbHNlIGlmKHBpZD09MCkKICAgIHsKICAgICAgICBleGVjbHAoIlBFU0NFIiwiQUkmTUwiLE5VTEwpOwogICAgICAgIGV4aXQoMCk7CiAgICB9CiAgICBlbHNlCiAgICB7CiAgICAgICAgcHJpbnRmKCJcbiBwcm9jZXNzIElkIGlzIDolZFxuIixnZXRwaWQoKSk7CiAgICAgICAgd2FpdChOVUxMKTsKICAgICAgICBleGl0KDApOwogICAgfQp9Cg==