From 97c2270a4cd72168b331f1aead8752c0831be007 Mon Sep 17 00:00:00 2001 From: Meneni Date: Fri, 31 May 2019 10:45:46 +0530 Subject: [PATCH] add chatToAscii.cpp --- src/charToAscii.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/charToAscii.cpp diff --git a/src/charToAscii.cpp b/src/charToAscii.cpp new file mode 100644 index 0000000..553bcc7 --- /dev/null +++ b/src/charToAscii.cpp @@ -0,0 +1,9 @@ +#include + +using namespace std; + +int main(){ + char c; + cin>>c; + cout<<(int)c<<"\n"; +} \ No newline at end of file