#include <stdio.h>int main(){ int x=10; float y = 2.3748; printf("%6.2f",y); printf("%-6.2f",y); printf("%6d",x);}
Standard input is empty
2.372.37 10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!