22 views3 pages

Document Summary

- this file includes examples for: a) printf() function using different conversion specifiers/codes b) scanf() function using different formats(single entry, multiple entries, strings, and scan set) //make available the printf and scanf functions implemented in stdio. h. //the implementation of the main function int main(){ // open the block for main. // notice that when using keyword const(named constant), the constant should be. // initialized in the same line. const double radius = 13; //printf() function is used to provide formatted output. // -- will receive a string and a list of arguments. // -- the string may contain: text, escape sequences and conversion codes. // -- the argument list may have 0 or more elements. // -- the format-control string: "%d %c %5. 1f\n" // *- this format-control string is indicating that. // %d will be replaced by an integer from the list. // escape sequence (tab) to include empty spaces.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents