#includestdio.hint main (void){printf(The next largest even multiple of %i and %i is %i.\\n, 365, 7, 365 + 7 - 365 % 7);
编程学习网为您整理以下代码实例,主要实现:找出样本数据对的下一个最大偶数。,希望可以帮到各位朋友。
#include<stdio.h>
int main (voID)
{
printf("The next largest even multiple of %i and %i is %i.\n", 365, 7, 365 + 7 - 365 % 7);
printf("The next largest even multiple of %i and %i is %i.\n", 12258, 23, 12258 + 23 - 12258 % 23);
printf("The next largest even multiple of %i and %i is %i.\n", 996, 4, 996 + 4 - 996 % 4);
return 0;
}