박민영

코드업 C++ 기초 100제 [기초-데이터형][기초-출력변환]

Created March 25, 2022

#include <iostream>
using namespace std;

int main(){
unsigned int n;
	cin >> n;
	cout << n;
return 0;
}

#include <iostream>
using namespace std;

int main(){
cout.setf(ios::fixed);
	cout.precision(11);
	double d;
	cin >> d;
	cout << d;
return 0;
}
#include <iostream>
using namespace std;

int main(){
long long int n;
	cin >> n;
	cout << n;
return 0;
}
using namespace std;

int main(){
char a;
	cin >> a;
	int num = (int)a;
	cout << num;
return 0;
}

1037(수정필)

#include <iostream>
using namespace std;

int main(){
int n;
	cin >> n;
	if (n >= 0 && n <= 255) {
		char a[10];
		sprintf(a, "%d", n);
		cout<<a;
	}
	else {
	}
return 0;
}