輸入說明: 輸入一個整數 輸出說明: 輸出奇數或偶數
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- int a;
- scanf("%d",&a);
- if(a%2==0){
- printf("even\n");
- }
- else
- printf("odd\n");
- system("PAUSE");
- return 0;
- }
Problem Description Convert two binary numbers into two decimal numbers and compute their sum. Your program has to convert two binary number...
Hiç yorum yok:
Yorum Gönder