定义整形变量a=100,变量b=3.14,通过 printf函数把两个变量打印出来。
#include <stdio.h> int main() { int a = 100; float b = 3.14; printf("a = %d, b = %f\n", a, b); return 0; }