Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://socialledge.com/sjsu/index.php/Main_Page
- Withing the Printf use %d to call variable(int) you state later.
- Ex) printf("The Variable is %d /n", x)
- Ex) scanf("%d", &y)
- Float is %f
- Decimal is %d
- Char is %c
- String is %s
- double is a variable type (containing decimals
- if (m==0)
- Do this;
- else
- Do this;
- \n (newline)
- \t (tab)
- \v (vertical tab)
- \f (new page)
- \b (backspace)
- \r (carriage return)
- \n (newline)
- %d (print as a decimal integer)
- %lf (to call a double)
- %6d (print as a decimal integer with a width of at least 6 wide)
- %f (print as a floating point)
- %4f (print as a floating point with a width of at least 4 wide)
- %.4f (print as a floating point with a precision of four characters after the decimal point)
- %3.2f (print as a floating point at least 3 wide and a precision of 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement