“Program ASCII” Kode Jawaban

C Dapatkan nilai arang ASCII

#include<iostream>
using namespace std;
int main ()
{
    char c;
    cout << "Enter a character : ";
    cin >> c;
    cout << "ASCII value of " << c <<" is :  " << (int)c;
    return 0;
}
Tough Teira

Program ASCII

# Python program to print
# ASCII Value of Character
 
# In c we can assign different
# characters of which we want ASCII value
 
c = 'g'
# print the ASCII value of assigned character in c
print("The ASCII value of '" + c + "' is", ord(c))
Annoyed Alpaca

Jawaban yang mirip dengan “Program ASCII”

Pertanyaan yang mirip dengan “Program ASCII”

Lebih banyak jawaban terkait untuk “Program ASCII” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya