10 likes | 146 Views
#include <stdio.h> #include <stdlib.h> main() {. float i=123.4562,j=-123.4567; printf("i=%f<br>",i);. printf("123456789012345678901234567890<br>"); printf("i=%9.3fAj=%9.3fA<br>",i,j);. printf("123456789012345678901234567890<br>"); printf("i=%2.5fAj=%10.1fA<br>",i,j);.
E N D
#include<stdio.h> #include<stdlib.h> main() { floati=123.4562,j=-123.4567; printf("i=%f\n",i); printf("123456789012345678901234567890\n"); printf("i=%9.3fAj=%9.3fA\n",i,j); printf("123456789012345678901234567890\n"); printf("i=%2.5fAj=%10.1fA\n",i,j); printf("123456789012345678901234567890\n"); printf("i=%+9.3fAj=%+9.3fA\n",i,j); printf("123456789012345678901234567890\n"); printf("i=%-2.5fAj=%-10.1fA\n",i,j); printf("123456789012345678901234567890\n"); system("pause"); }