Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Stub Program for Problem 6 HW 2
// Stub program for Problem 6 HW 2 Fall 2016 #include <stdio.h> #define SIZE 30 #define ERROR -1 ////////////////////////////////////////////////////////////////////// // Function name: inches2cm // // Description: Perform inches-to-cm conversion, using // integer operations only. // // Input parameters: // inches, the input value measured in inches. // // Returns: // The nearest centimeter value that corresponds to the input // value. // unsigned int inches2cm (unsigned int inches) { // Your code goes here! } int main(void) { // number that we read in from stdin unsigned int inputNumber; // output number (hopefully cms) unsigned int outputNumber; printf("\n*** Stub program for Problem 6 -- inches2cm ***\n\n"); // First read in an integer scanf("%d\n", &inputNumber); // print out the input number printf("Read in the number %d.\n\n", inputNumber); // Call your routine outputNumber = inches2cm(inputNumber); // Print out the result printf("After function call the outputNumber is %d.\n\n", outputNumber); return 0; }
run
|
edit
|
history
|
help
0
a3
StructSurvey
Project 3 part 2 Book v10.1
assignment 3 celina
1.7 Test parallel function
My first structure
than mine time's ocean as real white shakedown marine is mistake
Spring 2017 Project 2 v.05
bitwise manipulation using another function
Lab6 v1.1 Sin,cos,tan,cot