myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
A

@abhaumik

find the first 3 digit sum should be equal to given number

C++
2 years ago
#include <iostream> using namespace std; int main() { int num=1,n,k,count=0; cin>>n; cin>>k; while(count<n) { int digitsum=0;

power of 2

C++
2 years ago
#include <iostream> using namespace std; int main() { int n,rem; cin>>n; //for(int i=n;i>0;i=i/2) while(n>1) { if(n%2==1)
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us