public class charCovert{
public static void main(String[] args){
AsciiToChar(65);
CharToAscii('Z');
第一題
設計程式,利用引數輸入2個整數,然後將數字由小到大顯示出來,若相等則顯示"兩數相等"。 例如:
輸入: java Exam01 25 10
輸出:10 25輸入:java Exam01 10 25
輸出:10 25 輸入:java Exam01 25 25
For given value of N (say, 30), first write down all the integers from 2 to N:
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Delete all the multiples of the first number in the sequence (2):
2 3 5 7 9 11 13 15 17 19 21 23 25 27 29
#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{