herrDeng網內搜尋

自訂搜尋

Ads

2017年9月20日 星期三

ex2 C++

輸入n=5

輸出如下:

12345
1234
123
12
1

62 則留言:

B10433065劉勝威 提到...

#include <iostream>

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

B10433102楊婷妤 提到...

#include <iostream>

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

B10433071雷昕翰 提到...

#include <iostream>

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

B10533074李皓文 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<= i; j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533017古峻衛 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533037張俊為 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10433081巫明芬 提到...

#include <iostream>

int main(int argc, char** argv)
{
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--)
{
for (j = 1; j<(i + 1); j++)
{
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10433073何明宗 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10433201 李文祥 提到...

#include <iostream>


int main(int argc, char** argv){
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i-- ) {
for (j = 1; j<= i; j++ ) {
std::cout << j ;
}
std::cout << "\n";
}
return 0;
}

b10533015陳建志 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533073黃叡哲 提到...

#include


int main (int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout <<"Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; i<= n; j++){
std::cout << j;
}
std::cout << i << "\n";
}
return 0;
}

B10533009 張仲崴 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10433107袁婕寧 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533011 江道逸 提到...

#include <iostream>


int main(int argc, char** argv) {
int a = 0;
int s = 0;
int d = 0;
std::cout << "input n=";
std::cin >> d;
for (a = d; a>0; a--) {
for (d = 1; d<(a + 1); d++) {
std::cout << d;
}
std::cout << "\n";
}
return 0;
}

b10533008張士晟 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533062 洪尚郁 提到...

#include <iostream>


int main(int argc, char** argv) {
int n = 0;
int i = 0;
int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533004李登恩 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533031 沈宏儒 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533007 提到...

#include <iostream>


int main(int argc, char** argv) {
int a = 0;
int s = 0;
int d = 0;
std::cout<< "Input n=";
std::cin >> d;
for (a = d; a>0; a--){
for (d = 1; d<(a + 1); d++){
std::cout << d;
}
std::cout <<"\n";
}
return 0;
}

B10533010蕭凱維 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533063 陳廣制 提到...

#include


int main (int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout<<"Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; i<= n; i++){
std::cout << j;
}
std::cout << i << "\n";
}
return 0:
}

b10533006 劉純賓 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int i = 0;
unsigned int j = 0;
unsigned int n = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (n = 1; n<(i + 1); n++) {
std::cout << n;
}
std::cout << "\n";
}
return 0;
}

B10433090蔡語鋐 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10537208 楊蕊筑 提到...

int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<= i; j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533066 曾楷杰 提到...

#include


int main (int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout<<"Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; i<= n; i++){
std::cout << j;
}
std::cout << i << "\n";
}
return 0:
}

b10533032程泓瑋 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10433072廖翊翔 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i +1); j++) {

std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10433106簡瑋佑 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<= i; j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533011 江道逸 提到...

#include <iostream>


int main(int argc, char** argv) {
int a = 0;
int s = 0;
int d = 0;
std::cout << "input n=";
std::cin >> d;
for (a = d; a>0; a--) {
for (d = 1; d<(a + 1); d++) {
std::cout << d;
}
std::cout << "\n";
}
return 0;
}

b10533032程泓瑋 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533019 葉佳倫 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533087湯秉鈞 提到...

#include <iostream>

int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout <<"Input n=";
std::cin >>n;
for (i=n; i>0; i--) {
for (j =1; j<=i; j++)
std::cout <<j;
}
std::cout <<"\n";
}
return 0;
}

b10433099駱婉婷 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i +1); j++) {

std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533018 陳郁傑 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int i = 0;
unsigned int j = 0;
unsigned int n = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (n = 1; n<(i + 1); n++) {
std::cout << n;
}
std::cout << "\n";
}
return 0;
}

B10533010蕭凱維 提到...

#include &lt;iostream&gt;


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout &lt;&lt; "Input n=";
std::cin &gt;&gt; n;
for (i = n; i&gt;0; i--) {
for (j = 1; j&lt;(i + 1); j++) {
std::cout &lt;&lt; j;
}
std::cout &lt;&lt; "\n";
}
return 0;
}

B10433073何明宗 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10514033盧昱仁 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533101 江翊菱 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i --) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10433094 簡筱芸 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

匿名 提到...

#include


int main (int argc, char** argv) {
unsigned int n =0;
unsigned int i =0;
unsigned int j =0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--){
for ( j = 1; i<= n; j++){
}
std::cout << i << "\n";
}
return 0;
}

B10533064蔡佩芸 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533085羅偉辰 提到...

#include


int main (int argc, char** argv) {
unsigned int n =0;
unsigned int i =0;
unsigned int j =0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--){
for ( j = 1; i<= n; j++){
}
std::cout << i << "\n";
}
return 0;
}

B10533076 提到...

#include


int main (int argc, char** argv) {
unsigned int n =0;
unsigned int i =0;
unsigned int j =0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--){
for ( j = 1; j<= n; j++){
}
std::cout << i << "\n";
}
return 0;
}

B10533029游淑娥 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533011 江道逸 提到...

#include <iostream>

int main(int argc, char** argv) {
int i = 0;
int j = 0;
int n = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (n = 1; n<(i + 1); n++) {
std::cout << n;
}
std::cout << "\n";
}
return 0;
}

B10533075陳詔瑋 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533071徐琮淇 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533132許敏茹 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for j = 1; j<= i; j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533088葉俊江 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533038楊尹玄 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533082洪承楓 提到...

#include

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

B10533093許永炎 提到...

#include

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

b10533072 吳堉瑋 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

b10533038楊尹玄 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533093許永炎 提到...

#include

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

B10533088葉俊江 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533083徐士興 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533083徐士興 提到...

#include


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533132許敏茹 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for j = 1; j<= i; j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533083徐士興 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10533083徐士興 提到...

#include <iostream>


int main(int argc, char** argv) {
unsigned int n = 0;
unsigned int i = 0;
unsigned int j = 0;
std::cout << "Input n=";
std::cin >> n;
for (i = n; i>0; i--) {
for (j = 1; j<(i + 1); j++) {
std::cout << j;
}
std::cout << "\n";
}
return 0;
}

B10433088葉凱文 提到...

#include

using namespace std;

int main()
{
unsigned int n;
unsigned int i;
unsigned int j;
cout << "input n = ";
cin >> n ;
for( i=n ; i>0 ; i-- ){
for( j=1 ; j<=i ; j++ ){
cout << j ;
}
cout <<"\n";
}
return 0;
}

Related Posts Plugin for WordPress, Blogger...

熱門文章