Want to display 00

Hi,

I want to display 00 by using data type int, but this is displaying only one 0. Please help me, how should I display 00 ?

Thanks.
1
2
3
4
5
6
#include<iostream>
using namespace std;
int main() {
int c = 00;
cout << c;
}
Last edited on
Hi, type "iomanip leading zeros" in Google: you should find all the information you need.
Last edited on
Topic archived. No new replies allowed.