0
How to write a program that asks me to enter an ASCII code value such as 66 and than prints the character having that ASCII code
Question
3 odpowiedzi
+ 3
Do like this
#include <iostream>
using namespace std;
int main() {
int var=65;
cout<<(char)var<<endl;
return 0; }
0
thank you
0
In another way:
int a;
cin>>a;
cout<<char(a) ;