User:Wickedjargon/sandbox

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Test[edit | edit source]

Test[edit | edit source]

test


#include <stdio.h>
#include <math.h>



int main(int argc, const char * argv[])
{
    double meters = 3.0;
    unsigned int feet;
    double inches;
    
    metersToFeetAndInches(meters, &feet, &inches);
    printf("%.1f meters is equal to %d feet and %.1f inches.", meters, feet, inches);
    
    return 0;
}