I wanted to execute simple c program that call function every 1 minute.Please help me in coding.
#include<stdio.h>
main()
{
printf("hello");
fun1();
printf("welcome");
delay(1000);
}
void fun1()
{
printf("fun1 is called");
delay(10000);
}
void delay(int k)
{
for(i=0;i<k;i++)
{}
}
output i wanted in format:
hello
welcome
Each 10 time after 10 statement it should print fun1 is calledthen it should continue printing hello welcome anoter 10 times