17 lines
288 B
C
17 lines
288 B
C
|
#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;
|
||
|
}
|