#include stdio.hint main (void){int value1, value2, sum;value1 = 50;/*ww w.yIi ba i. com*/value2 = 25;
编程学习网为您整理以下代码实例,主要实现:在printf()中显示多个值,希望可以帮到各位朋友。
#include<stdio.h>intmain(voID){
int value1, value2, sum;
value1 = 50;/* w w w .y Ii ba i. c o m*/
value2 = 25;
sum = value1 + value2;
printf ("The sum of %i and %i is %i\n", value1, value2, sum);
return0;
}