[ create a new paste ] login | about

Link: http://codepad.org/sfLlbqmc    [ raw code | output | fork ]

Nameless - C++, pasted on Feb 18:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;
 
int main()
{
        setlocale(LC_ALL, "Russian");
 
	int decVal[5]={ 15, 16, 21, 0, 35};//Число в десятичной СС
        for(size_t i=0; i<5; ++i)
			cout << hex << decVal[i] << endl;
        return 0;
}


Output:
1
2
3
4
5
f
10
15
0
23


Create a new paste based on this one


Comments: