move exercises and lectures into subfolders

This commit is contained in:
2023-10-15 15:34:53 +01:00
parent 775b4bd643
commit 74092a17aa
177 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#include <stdio.h>
int main(void)
{
// Declare some variables
int a,b,c;
float f,g;
// Use printf to prompt the use to enter 3 integers
printf ("Please enter three integer\n");
// use scanf with %d to read into a, b and c
scanf ("%d %d %d",&a, &b, &c); // note the important &
// And display on the screen
printf ("The values entered were %d %d %d\n", a, b, c);
// Use printf to prompt the use to enter an float
printf ("Please enter two floats\n");
// use scanf with %f to read into f ang g
scanf ("%f %f",&f, &g); // note the important &
// And display on the screen
printf ("The value you entered were %f and %f \n", f,g);
return 0; // Exit from main
}