unit 01 version C pah9ie

unit 01 version C pah9ie - THREE is = %.1f...

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

View Full Document Right Arrow Icon
Sheet1 Unit 01 Readiness Test Version C 1) Stand Alone Program #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { printf("ME 205 follows the Personalized System of Instruction\n\n") return (0) } 2) Function #include <stdio.h> #define Six 6.0 #define Three 3.0 int main(void) { printf("SIX TIMES
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: THREE is = %.1f \n",Six*Three) getchar() return (0) } 3)Errors #include <stdio.h> #define PI 3.1415926 int main(void) { printf("Approximate value of PI=%f \n",PI) return (0) } 4) format specification printf("PI = %8.4f\n", PI) Page 1...
View Full Document

This note was uploaded on 09/11/2008 for the course ME 205 taught by Professor Koen during the Spring '07 term at University of Texas at Austin.

Page1 / 2

unit 01 version C pah9ie - THREE is = %.1f...

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