C examples for Data Type:int
Finds the next largest even multiple for some pairs of sample data.
#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;//from w w w .j ava2 s . co m }