Program to check prime no in C++ #include <iostream> // #include - preprocessor to include header files in the program iostream is a header file that contains functions for input/output operations (cin and cout). using namespace std; // for using standard variables name int main(//function use for run the program and before main if using int then it will retu...
Posts
- Get link
- X
- Other Apps
JAVA Java is a popular programming language, created in 1995. It is owned by Oracle, and more than 3 billion devices run Java. It is used for: Mobile applications (specially Android apps) Desktop applications Web applications Web servers and application servers Games Database connection Why Use Java? Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.) It is one of the most popular programming language in the world It is easy to learn and simple to use It is open-source and free It is secure, fast and powerful James Gosling is known as the father of Java . Before Java, its name was Oak . Since Oak was already a registered company, so James Gosling and his team changed the name from Oak to Java. ...
- Get link
- X
- Other Apps
Aptitude problem on trains Important Formulas m/s to km/hr conversion: a m/s = a x 18 km/hr. 5 km/hr to m/s conversion: a km/hr = a x 5 m/s. 18 Time taken by a train of length l metres to pass a stationery object of length b metres is the time taken by the train to cover ( l + b ) metres. two trains or two objects bodies are moving in the same direction at u m/s and v m/s, where u > v , then their relative speed is = ( u - v ) m/s. two trains or two objects bodies are moving in opposite directions at u m/s and v m/s, then their relative speed is = ( u + v ) m/s. two trains of length a metres and b met...