Partially changed file structure to suit VSCode

This commit is contained in:
Louise Brown
2022-10-24 14:01:59 +01:00
parent 1c0a9e7b6a
commit a2c8695634
29 changed files with 30 additions and 21 deletions

View File

@@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare and initialise as required
int a = 1,b = 4;
float ans;
// Perform calculation
// a and b are integers so the answer will be the result of the integer division
ans = a / b;
// Display answer
printf ("\nThe answer is %f",ans);
return 0;
}