body { font-family: sans-serif; line-height: 1.6; margin: 0; padding: 0; color: #333; }
.header { background: #f8f9fa; border-bottom: 1px solid #dee2e6; padding: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.nav-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nav-links a { text-decoration: none; color: #007bff; }
.nav-links a:hover { text-decoration: underline; }
.main-content { padding: 2rem 0; }
h1 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 0.5rem; }
.example-box { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; padding: 1.5rem; margin: 1.5rem 0; }
.code-block { background: #2d2d2d; color: #f8f8f2; padding: 1rem; border-radius: 4px; overflow-x: auto; font-family: 'Courier New', Courier, monospace; }
.output { background: #f1f1f1; border-left: 4px solid #3498db; padding: 1rem; margin: 1rem 0; font-family: monospace; }
.footer { background: #f8f9fa; border-top: 1px solid #dee2e6; padding: 1rem; text-align: center; margin-top: 2rem; }
.sidebar { background: #f8f9fa; padding: 1rem; border-radius: 4px; margin-bottom: 2rem; }
.sidebar h3 { margin-top: 0; color: #2c3e50; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin: 0.5rem 0; }
.sidebar a { text-decoration: none; color: #007bff; }
.sidebar a:hover { text-decoration: underline; }
.note-section { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #dee2e6; }
.note-section h3 { color: #2c3e50; }
.note-form { margin-top: 1rem; }
.note-form label { display: block; margin-bottom: 0.5rem; }
.note-form input, .note-form textarea { width: 100%; padding: 0.5rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.note-form button { background: #007bff; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; }
.note-form button:hover { background: #0056b3; }
.ad-banner { background: #e9ecef; padding: 1rem; border-radius: 4px; margin: 1rem 0; text-align: center; }
.ad-banner a { color: #007bff; text-decoration: none; font-weight: bold; }
.ad-banner a:hover { text-decoration: underline; }
C Standard Library
C Programming Example - Printing a Double
C Examples
Use printf() with %e to output a double-precision number.
Example
#include<stdio.h>
int main()
{
double d; // Declare double variable
d = 12.001234; // Define double variable
printf("The value of d is %le", d);
return 0;
}
Output:
The value of d is 1.200123e+01
Click to Share Notes
Write a note...
Image URL
Image Description
Image Size
Share Note
Nickname (required)
Email (required)
Reference URL