문제1:
1부터 10까지의 정수를 한줄로 출려하는 프로그램을 작성
답 :
void main()
{
printf(“1 2 3 4 5 6 7 8 9 10/n”);
}
<!--[if !supportEmptyParas]--> <!--[endif]-->
문제2:
한 줄에 숫자 하나씩 1부터 10까지의 정수를 출력하는 프로그램을 작성하시오
답:
void main()
{
printf(“1/n2/n3/n4/n5/n6/n7/n8/n9/n10/n”);
}
<!--[if !supportEmptyParas]--> <!--[endif]-->
문제 3:
문제1,2의 내용에 대해 제목과 작성자를 포함하여 단계별로 화면에 보기좋게 출력하는 프로그램을 작성하시오
문제4:보고서 겉표지 내용을 보기좋게 출력하는 프로그램을 작성하시오.
1,2는 대충 #include <stdio.h> 빼고 저렇게 적어놨구오
3,4는 어캐 푸는건가요?
어렵네요
아ㅜㅜ 장난치지 마시구 갈켜주세요 문제가 뭘묻는질 모르겠음
문제의 요지는 그게 아닌듯 한데..
문제 1:
#include <iostream>using namespace std;int main(){ for(int i=1; i<11; i++) { cout << i << " " ; } cout << endl; return 0;}
문제2: #include <iostream>using namespace std;int main(){ for(int i=1; i<11; i++) { cout << i << " " << endl ; } return 0;}
문제3:#include <iostream>using namespace std;int main(){ cout <<" 제목 " << endl; cout <<" 작성자" << endl; cout << "문제1: " << endl; for(int i=1; i<11; i++) { cout << i << " "; } cout << endl; cout << "====================================" << endl; cout << "문제2: " << endl; for(
int i=1; i<11; i++) { cout << i << " " << endl; } cout << "====================================" << endl; return 0; }
문제 4는 그냥 \t 스페이스로 보기좋게 그냥 띄워