나머지연산자활용 Qna 관련 답변 1 페이지

c언어 n의배수가 아닌 총합 구할려는데..

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...

태그: 배수체크, 배수가아닌값을출력하고합산하기, 배수값체크, 나머지연산자활용, 나머지연산자

C++ 문제 푸는중인데요 급해요 ㅠㅠ...

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...

태그: 난수발생, 난수를범위내에서발생, rand, srand, random, 나머지연산자활용

    실시간 인기 검색어
    인기 검색어 더보기 →
    ...