贊助廠商

娛樂城推薦

首頁

刊登資訊

  • 刊登者:匿名
  • 時間:2021-06-01 18:00:02

尚未解答程式語言與理論-大一資工系求解

程式語言與理論-大一資工系求解

Write a program that reads n integer numbers and show the larget and smallest
numbers. Input n: 5 Input 5 numbers: 22 56 74 66 32 The largest number is 74.
The smallest number is 22. Hint: Refer to the following code.
#include <stdio.h>
#define SIZE 100
int main(void)
{
int i, a[SIZE] = {0}; printf('Input numbers: ');
scanf('%d', &a[0]);
printf('The largest number is %d.\n', a[0]); printf('The smallest number is %d
.\n', a[0]);
}

--

0個答案 程式語言與理論-大一資工系求解

其他問題

友站連結