Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C program for float division of numbers

#include <stdio.h>

void main() {
    int a;
    float b, c, d;
    a = 750;
    b = a / 350;
    c = 750;
    d = c / 350;
    printf("%.2f %.2f", b, d);
    // output: 2.00 2.14
  
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #C #program #float #division #numbers
ADD COMMENT
Topic
Name
5+4 =