20 lines
350 B
C
20 lines
350 B
C
#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;
|
|
|
|
} |