当前位置:网站首页>Input and output character data
Input and output character data
2022-06-28 20:13:00 【Zaltana】
Write a simple program , User input 2 Character data stored in variable , And output on the screen in character form and integer form respectively .
Format
Input format :2 Character data , Separate with commas
Output format : Output two lines The ASCII code of... is...(... Output the input data in character form and integer form in sequence )
Examples
Input :A,B
Output :The ASCII code of A is65
The ASCII code of B is66
#include<bits/stdc++.h>
using namespace std;
int main( )
{
char a,b;
scanf("%c,%c",&a,&b);
printf("The ASCII code of %c is %d\n",a,a);
printf("The ASCII code of %c is %d\n",b,b);
return 0;
}边栏推荐
猜你喜欢

rsync远程同步

2022焊工(初级)特种作业证考试题库及答案

2022 P cylinder filling test exercises and online simulation test

社招两年半10个公司28轮面试面经

Lecture 30 linear algebra Lecture 4 linear equations

28 rounds of interviews with 10 companies in two and a half years

H5 sunflower operation

Number theory -- detailed proof of Euler function, sieve method for Euler function, Euler theorem and Fermat theorem

CSDN salary increase technology selenium automated test stack summary
![return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};
随机推荐
UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
Concours de segmentation des images gastro - intestinales de kaggle Baseline
裁员真能拯救中国互联网?
two thousand three hundred and forty-two
关键字long
怎么理解云原生数据库的快速迭代?
30讲 线性代数 第四讲 线性方程组
秒杀系统设计
iterator中的next()为什么要强转?
2. 整合 Filter
Internship: term understanding and handwriting interface
集合之ArrayList
Troubleshooting of pyinstaller failed to pack pikepdf
还在付费下论文吗?快来跟我一起白piao知网
【学习笔记】因子分析
员工薪资管理系统
Windows 64 bit download install my SQL
Wechat applet_ 8. View and logic
2280.Cupboards
2837. The total number of teams