+ 1
Why hello wold program is not running in termux
Hello world programme is not running in termux Android
16 Answers
+ 2
I don't know much more about that you can follow these steps which i mentioned in Answer . but if u facing error type name on Google u can find easily or you can download any other ide if u want to execute your c ,cpp code .
Download cxxdroid best for c /cpp in android
+ 3
Try this may be will able to run your code easily follow these steps
To Install and Use C/C++ compiler in Termux (in Termux clang is the C/C++ compiler) ,
Download & Install Termux from : Play Store.
After Installing execute this command pkg install clang.
After Successfully installing clang you can compile C/C++ scripts
Open Termux app and type commands
$ pkg install clang
OR
$ pkg install g++
$ pkg install nano
To write your c++ program type
$ nano filename.cpp
+ 2
Show your code what u typed
+ 2
I think you cannot run c or Cpp code in termux directly u need to install packages.
Try same code in python may be it will run
type this
print("hello")
Or
Add two numbers
+ 2
Ok thanks we'll what's ur name bro
+ 2
Discussion box is only for ask Programming related doubts so dont ask unnecessary questions.
+ 2
Nilesh Chouhan welcome
+ 1
How you writting and what errors it showing.?
+ 1
Ok
+ 1
Tnx for help
0
I have just paste and copied the program from here
0
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
0
How can I send u screenshot yrr there is problem now also
0
Ok sister tnx
0
Try these commands
1. g++ filename.cpp -o filename.exe
2../filename.exe