اكتب برنامج بلغة ++c يطلب من المستخدم ادخال رقم ويقوم باخبار المستخدم الحرف الموجود في الشفرة الثنائية
-
2022-04-23
- | esmailrabie902139106278
- | م189
برنامج يطلب من يقوم باخبار المستحدم (بعد ادخال رقم معين ) الحرف في هذا الرقم في الشفرة الثنائية
ويقوم ايضآ بقراءة حرف من المستحدم ثم يخبره برقم الحرف في الشفرة الثنائية
الأجوبة
ابحث عن مسائل برمجة سي بلس بلس | C++ programming بالانجليزي
void clrscr();
int n, n1 ;
char ch ,ch1 ;
cout<<"enter any number= ";
cin>>n;
ch = n;
cout<<"The character of given number is="<<n<<endl;
cout<<"press any key on the keyboard";
cin>>ch1;
n1=ch1;
cout<<"The number value of given character is ="<<n1;
output:
enter any number = 67
The character of given number is =C
press any key on the keyboard = h
the number value of given character is = 104
-
2022-04-23
- | esmailrabie902139106278
- | إبلاغ عن إساءة
أسئلة مشابهة