| Главная » Статьи » Программирование » C++ |
![]() #include<stdio.h> void main() { int x,y,z; printf("\nPleace enter x: "); scanf("%d",&x); printf("\nPleace enter y: "); scanf("%d",&y); z = 31 + x * (x + y); printf("\nResult (decimal) Z = %d",z); printf("\nResult (octal) Z = %o",z); printf("\nResult (hexandecimal) Z = %x",z); }
Pleace enter x: 31 Pleace enter y: 1 Result (decimal) Z = 31 Result (octal) Z = 37 Result (hexandecimal) Z = 1f
1f(16) → ? (10). 1f (16) = 1 · 16 + 15 · 16 = 31 | |
| Просмотров: 25943 | Рейтинг: 0.0/0 |
| Всего комментариев: 0 | |




















