#include using namespace std; void swapArray(int* p, int* q, int size); void printArray(int* p, int size); int main() { cout
# 역삼각형 #include int main() { printf("\n"); int i,j,n; printf("n을 입력하세요.\n"); printf("n = "); scanf_s("%d", &n); for (i = 1; i = i; j--) { printf("*"); } printf("\n"); } return 0; }
#include using namespace std; class Tower { private: int height; public: Tower(); Tower(int h); int getHeight(); }; Tower::Tower() : height(1){} Tower::Tower(int h): height(h) {} int Tower::getHeight() { return height; } int main() { Tower myTower; Tower seoulTower(100); cout
#include int main() { printf("\n"); int n; printf("n을 입력하세요.\n"); printf("n = "); scanf_s("%d", &n); if (n % 3 == 0) printf("n은 3의 배수입니다.\n"); else printf("n은 3의 배수가 아닙니다.\n"); return 0; }
# halfadder # fulladder # 테스트벤치
1.