Partially changed file structure to suit VSCode
This commit is contained in:
@@ -3,15 +3,18 @@
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Declare and initialiase as required
|
||||
// Declare and initialise as required
|
||||
int a = 1,b = 4;
|
||||
float ans;
|
||||
|
||||
ans = a / b; // Perform calculation
|
||||
// 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);
|
||||
|
||||
// Exit from program
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user