wssh.net
当前位置:首页>>关于编写一个程序,要求从键盘输入10个整数,然后采用...的资料>>

编写一个程序,要求从键盘输入10个整数,然后采用...

package com.prac;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Prac7 {public static void main(String[] args){BufferedReader br=new BufferedReader(new InputStreamReader(Sy...

对不起啊!刚下线了~~ #include main() {int a[10],i,j,t; for(i=0;i

import java.io.*; import java.util.*; public class A { public static void main(String[] args) throws NumberFormatException, IOException { int[] num=new int[10]; BufferedReader br=new BufferedReader(new InputStreamReader(System....

int a[10]; for(int i=0;i

# includevoid insertsort(int num[],int n){int i,j;for(i=0; i

#include void main() {int a,i ,b; printf("输入一个数"); scanf("%5d",&a); b=a; while(b

#includeint main(){int a[12];int i,temp;for(i=1;i

#include int main() { int a[10]; int i; for(i = 0; i < 10; i++) scanf("%d",&a[i]); for(i = 0; i < 10; i++) if(a[i] < 0) printf("%d ",a[i]); }

#include main() { int a[10],i,sum=0,count=0; for(i=0;i=0) { sum=sum+a[i]; count++; } } printf("total %d feifushu.\nThe sum of them is %d",count,sum); getch(); }

#include using namespace std;int main(){ int a[10],i,j,k,temp; cout

网站首页 | 网站地图
All rights reserved Powered by www.wssh.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com