#include <cstdio> #include <iostream> using namespace std; int main() { int a=1; double b=3.1415926; printf("%5d!\n",a); printf("%-5d!\n",a); printf("%05d!\n",a); printf("%5.1lf\n",b); return 0; }