0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[例題の為の例題]その文字が16進か、判定せよ!!!(方式(2))(オンラインコンパイラ)

Last updated at Posted at 2025-10-03

いろいろ注意

  • 過去ログを見よ!!!

プログラム

  • オンラインコンパイラ




#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    char a = '0';
    
    int b; //判定の結果
    
    //16進の判定
    b = ( ((a >= '0') && (a <= '9')) || 
          ((a >= 'A') && (a <= 'F')) ) ? 1 : 0;
    
    printf("%c (%d)\n",a,b);
    
}  //main






0 (1)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?