Skip to content

Instantly share code, notes, and snippets.

@Rahajustone
Created March 19, 2014 20:35
Show Gist options
  • Save Rahajustone/9650609 to your computer and use it in GitHub Desktop.
Save Rahajustone/9650609 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void)
{
int i;
float x;
i=40;
x=839.21f;
printf("|%d|%5d|%-5d|%5.3d|\n",i,i,i,i);// ||-symbol just mean print it and place for numbers..
printf("|%10.3f|%10.3e|%-10g|\n",x,x,x);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment