Sunday, August 30, 2020

defining your own functions: abstraction

#include <cs50.h>
#include <stdio.h>

int main(void)
{

void cough(void)
{
printf("cough\n");
}

for (int i=0; i<3; i++)
{
cough();
}

}


No comments:

Post a Comment