IHYPRESS PROGRAMMING
Tutorials and C programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
COverview of C : Numeric Placeholders
<01.03>
/* Numeric Placeholders */
#include <stdio.h> int main (void) { /* declarations */ int a; double x; /* executable statements */ a = 1000; x = 100.583665; printf ("%d\n", a); printf ("%3d\n", a); printf ("%4d\n", a); printf ("%5d\n", a); printf ("\n"); printf ("%lf\n", x); printf ("%15lf\n", x); printf ("%15.4lf\n", x); printf ("%18.2lf\n", x); printf ("%12.0lf\n", x); return (0); }
Hergestellt in Deutschland / Made in Germany
1000 1000 1000 1000 100.583665 100.583665 100.5837 100.58 101
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland