a2p4(introprog1620 perry)

a2p4(introprog1620 perry) - printf"output...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <stdio.h> #include <math.h> int main(void) { /* Declare variables. */ double result, x; x = 1024; result = (log(x))/(log(2)); printf ("input = %8.3f \n", x);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: printf ("output = %8.3f \n", result); /* Exit program. */ return 0; } /*------------------------------------------------------------*/...
View Full Document

This homework help was uploaded on 04/08/2008 for the course ECE 1620 taught by Professor Perry during the Spring '08 term at Villanova.

Ask a homework question - tutors are online