lab17 - { *num = *num + *num } void justdouble(int x) { x =...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Briana Peterson 3:35-5:45 /* replace with double */ #include<stdio.h> void replacewithdouble(int * num) void justdouble(int x) int main(void) { int i,k i=1 k=1 while(k <= 15) { printf("2^%d",k) printf("%8d\n", i) k++ } return(0) } void replacewithdouble(int * num)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { *num = *num + *num } void justdouble(int x) { x = x + x } 2^1 2 2^2 4 2^3 8 2^4 16 2^5 32 2^6 64 2^7 128 2^8 256 Sheet1 Page 2 2^9 512 2^10 1024 2^11 2048 2^12 4096 2^13 8192 2^14 16384 2^15 32768 Press any key to continue . . ....
View Full Document

Page1 / 2

lab17 - { *num = *num + *num } void justdouble(int x) { x =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online