herrDeng網內搜尋

自訂搜尋

Ads

2016年9月10日 星期六

ex2 C++第二個練習




至少會做n=6

27 則留言:

B10333049 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 1; i <= n; i++)
cout << "$";
cout << "\n";
}
system("Pause");
return 0;
}

B10333016 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 1; i <= n; i++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;

}

B10133186 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()

{
int n;
cin >> n;
for (int j = n; j >= 1; j--)
{
for (int i = 1; i <= j; i++)
cout << "$";
cout << "\n";
}
system("pause");
return 0;
}

B10333054 提到...

#include <iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 0; i < n; i++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;
}

B10333049 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 1; i <= n; i++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;

}

B10233082 唐偉強 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

b10333043 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for ( ; n>0; n--)
{
for (int i = 1; i <= n; i++)
cout << '$';
cout << "\n";
}

system("pause");
return 0;
}

A10433018 提到...

# include <iostream>
# include <cstdlib>
using namespace std;
int main()
{
cout << "input n=?";
int n;
cin >> n;
for (int i = n; i >=1; i-- )
{
for (int j =1; j <= i; j++)
cout << "$ ";
cout << "\n";
}
system("Pause");
return 0;
}

B10333009 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (; n > 0; n--)
{
for (int i = 1; i<= n; i++)
cout << "$";
cout << "\n";
}
system("pause");
return 0;
}

B10233077 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

B10233077 古承漢 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";

cout << "\n";

}
system("pause");
return 0;
}

B10233108 林宣瑋 提到...

#include <iostream>
#include <cstdlib>

using namespace std;
int main()
{
int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

B10233087 黃少洋 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";

cout << "\n";

}
system("pause");
return 0;
}

B10233127李昆和 提到...

#include
#include
using namespace std;
int main()
{
int n;
cin >>n;
for (int i = n; i >=1 ; i--)
{
for (int j = 1; j <= i; j++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;
}

a10433024 提到...

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";
}

system("pause");
return 0;
}

B10233096 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

B10233102 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

b10233137余崇嘉 提到...

#include
#include
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;
}

B10233185 提到...

#include
#include
using namespace std;
void pr(int n){
for (int i = 1; i <= n;i++)
cout << '$';
cout << "\n";
}

int main()
{
int n;
cin >> n;
for (int i = n; i > 0; i--)
pr(i);

system("pause");
return 0;
}

B10233072 提到...

#include
#include
using namespace std;
void pr(int n){
for (int i = 1; i <= n;i++)
cout << '$';
cout << "\n";
}

int main()
{
int n;
cin >> n;
for (int i = n; i > 0; i--)
pr(i);

system("pause");
return 0;
}

B10433092 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
class X{
public:
int n;
void pr(){
for (int i = n - 1; i > 0; i--)
cout << "$";
cout << "\n";
}
};
int main(){
X xx;
int m = 5;
for (int i = m; i > 0; i--){
xx.n = i;
xx.pr();
}
system("pause");
return 0;
}

B10433080 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
class X{
public:
int n;
void pr(){
for (int i = 1; i <= n; i++)
cout << "$";
cout << "\n";
}
};
int main(){
X xx;
int m = 5;
for (int i = m; i > 0; i--){
xx.n = i;
xx.pr();
}
system("Pause");
return 0;
}

B10433011 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
void pr(int n){
for (int i = 1; i <= n; i++)
cout << "$";
cout << "\n";
}
int main()
{
int n;
cin >> n;
for (int i = n; i > 0; i--)
pr(i);
system("pause");
return 0;
}

B10233095李元宏 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

B10433028 提到...

#include
#include

using namespace std;
int main()
{

int n;
cin >> n;
for (int i = n; i >= 1; i--)
{
for (int j = 1; j <= i; j++)
cout << "$";
cout << "\n";

}
system("pause");
return 0;
}

a10433015 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 1; i <= n; i++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;

}

b10533065 提到...

#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int n;
cin >> n;
for (n; n > 0; n--){
for (int i = 1; i <= n; i++)
cout << '$';
cout << "\n";
}
system("pause");
return 0;

}

Related Posts Plugin for WordPress, Blogger...

熱門文章