include <stdio.h> int main() { int a,b,c,d; int sum; printf("A:"); scanf("%d",&a); printf("B:"); scanf("%d",&b); printf("C:"); scanf("%d",&c); for(d=a;d<=b;d++){ if(d%c==1) printf("%d...
태그: 배수체크, 배수가아닌값을출력하고합산하기, 배수값체크, 나머지연산자활용, 나머지연산자
include <iostream> include <cstdlib> include <ctime> using namespace std; class Random { public : Random() { srand((unsigned)time(0)); } int next; int nextInRange; } int main() { int i...