formulahendry / formulahendry/vscode-code-runner
programming issue
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
Type: Bug
hello sir, when i was try to run cpp program the output is wrong. when i was check my programm and run it in to online compiler that time it work. please sir can you helpme
here a code:
//decimal to binary
#include
#include
using namespace std;
int main() {
int n,ans=0,bit=0;
cout<<"enter the decimal number: ";
cin>>n;
int i=0;
while (n>0)
{
bit=n%2;
n=n/2;
ans=(bit*pow(10,i))+ans;
i++;
}
cout<<"answer is: "<
System Info
|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i3-1125G4 @ 2.00GHz (8 x 1997)|
|GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|7.75GB (1.23GB free)|
|Process Argv|--crash-reporter-id f4fbdf41-cbb7-4e7c-a7f1-55fef8245367|
|Screen Reader|no|
|VM|0%|
A/B Experiments
```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30792227
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
962ge761:30841074
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingc:30839828
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30829745
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.