C语言实验——格式化输出(常量练习)
Description
用c语言的基本输出格式打印下列内容:
100
A
3.140000
Input
本题目没有输入数据
Output
输出三行数据:
100
A
3.140000
Sample
Output
100 A 3.140000
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
char c;
float f;
a=100;
c='A';
f=3.14;
printf("%d\n",a);
printf("%c\n",c);
printf("%f\n",f);
return 0;
}