씨언어 보고서
페이지 정보
작성일 19-09-21 23:34
본문
Download : 씨언어 레포트.hwp
레포트/기타
씨언어 보고서
씨언어,레포트,기타,레포트


설명
씨언어 레포트 , 씨언어 레포트기타레포트 , 씨언어 레포트
순서
구구단
#include`iostream.h`
void main()
{
int a[10][10] ;
int h=0 , w = 0 ;
for (h=1 ; h`=9 ; h++)
{
for (w= 2 ; w`=9 ; w++)
{
a[h][w]=hw ;
cout.width(3) ; // 공간생기게해준다
cout``wh ;
}
cout``endl ;
}
}
정수형5개
#include `iostream.h`
void main()
{
int Arr[5] ;
int pt ;
int sum=0 ;
float ave=0.0 ;
pt=Arr;
for(int i=0 ; i`5 ; i++)
{
cin``(pt+i) ;
}
for(i=0 ; i`5 ; i++)
{
sum+=(pt+i );
}
ave=sum/5.0 ;
cout``ave``en...
구구단
#include`iostream.h`
void main()
{
int a[10][10] ;
int h=0 , w = 0 ;
for (h=1 ; h`=9 ; h++)
{
for (w= 2 ; w`=9 ; w++)
{
a[h][w]=hw ;
cout.width(3) ; // 공간생기게해준다
cout``wh ;
}
cout``endl ;
}
}
정수형5개
#include `iostream.h`
void main()
{
int Arr[5] ;
int pt ;
int sum=0 ;
float ave=0.0 ;
pt=Arr;
for(int i=0 ; i`5 ; i++)
{
cin``(pt+i) ;
}
for(i=0 ; i`5 ; i++)
{
sum+=(pt+i );
}
ave=sum/5.0 ;
cout``ave``endl ;
}
정삼각형
#include`iostream.h`
void main()
{
int leng ;
cin``leng ;
for(int height=1 ; height`=leng ; height++)
{
for(int space=1 ; space`=leng-height ; space++)
cout ``` `;
for (int star=1 ; star`=height2-1 ; star++)
cout```` ;
cout``endl ;
}
}
-
역삼각형
#include`iostream.h`
void main()
{
for (int height=1 ; height`=5 ; height++)
{
for (int space=1 ; space `=height-1 ; space++)
cout ``` ` ;
for(int star=1 ; star`=10-(height2-1) ; star++)
cout…(To be continued )
씨언어 보고서
Download : 씨언어 레포트.hwp( 20 )
다.