move exercises, lecture examples, labs into subfolders

This commit is contained in:
2023-10-13 16:19:51 +01:00
parent a602f20e01
commit 015b5d6a08
200 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
/* EEEE1001/H61CAE*/
/* A program to show how to use fgets to safely read in a string */
#include <stdlib.h>
#include <stdio.h>
int main()
{
char MyName[11]; /* Define a string of 10 characters */
/* A string */
printf("\nPlease enter your name & press return ");
fgets(MyName, 11, stdin);
printf("\nHello %s ",MyName);
return 0; /* End of the program */
}