
2个回答
展开全部
一、
依次填:1 0 10 Index Term
6,5,6
依次填:int score default
17
二、
//#include "stdafx.h"//If the vc++6.0, with this line.
#include <iostream>
using namespace std;
int main(void){
for(int i=1;i<10;i++){
for(int j=1;j<i;cout << " ",j++);
for(j=i;j<10;cout.width(3),cout << i*j++);
cout << endl;
}
return 0;
}//#include "stdafx.h"//If the vc++6.0, with this line.
#include <iostream>
#include <iomanip>
using namespace std;
#define N 12
int main(void){
for(int a=1,b=1,m=1;m<=N;b+=a,a=b-a,m++)
cout << "Month" << setw(2) << m << ": " << (a<<1) << endl;
return 0;
}//#include "stdafx.h"//If the vc++6.0, with this line.
#include <iostream>
#include <iomanip>
using namespace std;
#define N 12
int main(void){
for(int n=0,i=101;i<200;i+=2){
for(int j=3;j*j<=i;j+=2)
if(i%j==0)
break;
if(j*j>i){
cout << setw(4) << i;
n++;
}
}
cout << endl << "A total of " << n << " prime Numbers." << endl;
return 0;
}//#include "stdafx.h"//If the vc++6.0, with this line.
#include <iostream>
#include <iomanip>
using namespace std;
int main(void){
for(int i=6;i<1000;i+=2){
for(int m=1,t=i>>1,j=2;j<=t;j++)
if(i%j==0)
m+=j;
if(m==i)
cout << setw(4) << m << endl;
}
return 0;
}
没事,没分也做……
2016-11-20
展开全部
这么多题目就10个分数,小神都不会帮你做,别说大神。
追问
我就10分,太尴尬了😂
追答
恩,还是自己卖力学吧,技不压身
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询