编程学习网为您整理以下代码实例,主要实现:找出样本数据对的下一个最大偶数。,希望可以帮到各位朋友。
#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;
}
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!