Added book examples

This commit is contained in:
Louise Brown
2022-04-08 16:12:38 +01:00
parent 5b205092a7
commit 1c0a9e7b6a
59 changed files with 1381 additions and 0 deletions

15
C5/displaying_variables.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare some variables
int a = 1, b = 2;
float f = 1.23f;
// Use printf display text on the screen
printf ("The variables are\na = %d\nb=%d\nf=%f", a, b, f);
// Exit from main
return 0;
}