Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
0004
#include <stdio.h> int main(void) { int month, day, year, item_number; float unit_price; printf ("Enter item number:\n"); scanf ("%d\n", &item_number); printf ("Enter unit price\n"); scanf ("%f\n", &unit_price); printf ("Enter purchase date (mm/dd/yyyy):\n"); scanf ("%d/%d/%\n", &month, &day, &year); printf ("Item\tUnit\tPurchase\n\tPrice\tDate\n"); printf ("%d\t%.2f\t%-2d/%2d/%4d\n", item_number, unit_price, month, day, year); return 0; }
run
|
edit
|
history
|
help
0
get_number_of_threads, windows
dhar1
32
defined(FOO)
Shadow pointer member variable
Template
ntohl
Default constructor - deleted
Strings
Generic EventProvider