#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("color %s, Number %d, float %4.2f","red",123456,3.14);
float num;
num=1234;
printf("\n%2f",num); //for34
printf("\n%.2f",num);
printf("\n%-2f",num);
printf("\n%-.2f",num);
getch();
return 0;
}
No hay comentarios:
Publicar un comentario