3 posts categorized under “programming”
Swap two variables without using third variable
Date Published: 19 December 2022
Swap two numbers without using third variable. There are two common ways to swap two numbers without using third variable. Solution 1: Using + and - Let's see a simple c example to swap two numbers without using third variable. Output: Solution 2: Using * and / Let's see another example to swap two numbers using * and /. Output:
C Program to print Hello world without using any semicolon
Date Published: 16 December 2022
we can print "hello" or "hello world" or anything else in C without using semicolon. There are various ways to do so: Solution: 1 Solution: 2 Solution: 3
Hello World! A Simple Program in Every Programming Language
Date Published: 07 December 2022
One of the first programs that many people learn to write is a program that simply prints the text "Hello, World!" to the screen. This program is often used as a simple way to get started with a new programming language, as it demonstrates the basic syntax and structure of the language. Here is a list of "Hello, World!" programs in a variety of popular programming languages: C: C++: Java: Python…