You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
264 B
16 lines
264 B
2 years ago
|
#include<cstdio>
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
int a=202;
|
||
|
double b=2323.34345;
|
||
|
//printf("a=%d\n",a);
|
||
|
//printf("2*a=%d\n",2*a);
|
||
|
//printf("a=%2d\n",a);
|
||
|
printf("%3lf\n",b);
|
||
|
printf("%20.2lf\n",b);
|
||
|
printf("%-20.2lf\n",b);
|
||
|
printf("%.21f\n",b);
|
||
|
return 0;
|
||
|
}
|