This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/C4/wrong_answer.c

17 lines
288 B
C
Raw Normal View History

2022-04-08 15:12:38 +00:00
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Declare and initialiase as required
int a = 1,b = 4;
float ans;
ans = a / b; // Perform calculation
// Display answer
printf ("\nThe answer is %f",ans);
// Exit from program
return 0;
}