1. Palindrome Number A number is a palindrome if it reads the same backward as forward. #include <stdio.h> int main() { int n, reversed = 0, remainder, original; printf("Enter an integer: "); scanf("%d", &n); original = n; while (n != 0) { remainder = n % 10; reversed = reversed * 10 + remainder; n /= 10; } if (original == reversed) printf("%d is a palindrome.", original); else printf("%d is not a palindrome.", original); return 0; } output Enter an integer: 1 1 is a palindrome. === Code Execution Successful === 2a Pattern 1: The Vertical Bar (Pipe) Pattern This pattern uses the | character. Plaintext | | | | | | | | | | | | | | | C # include <stdio.h> int main () { int i, j; for (i = 1 ; i <= 5 ; i++) { for (j = 1 ; j <= i; j++) { printf ( "| " ); } printf ( "\n" ); } ...
unit 1 Physics 1 Marks 1. Define physical quantity. A physical quantity is a property of a material or a system that can be measured, such as length, mass, time, or temperature. 2. Define fundamental physical quantity. A fundamental physical quantity is a physical quantity that cannot be expressed in terms of other physical quantities. Examples include length (meter), mass (kilogram), and time (second). 3. Define derived physical quantity. A derived physical quantity is a physical quantity that is expressed in terms of one or more fundamental physical quantities. Examples include area (length2), velocity (length/time), and density (mass/volume). 4. Define unit. A unit is a standard measure used to express a physical quantity. For example, the meter is the unit of length, and the kilogram is the unit of mass. 5. Define dimensions. The dimensions of a physical quantity are the powers to which the fundamental quantities (like mass, length, and time) must be raised to represent that quanti...
๐ UNIT 1 – BASIC ENGINEERING MATHEMATICS & CHEMISTRY NOTES ๐งช Chemistry – 1 Mark Questions (Detailed) 1. Define the term isotope. Isotopes are atoms of the same element which have the same atomic number but different mass numbers. For example, 1 H , 2 H , 3 H ^1H, ^2H, ^3H are isotopes of hydrogen. 2. Define the term isobar. Isobars are atoms of different elements that have the same mass number but different atomic numbers. For example, 40 A r ^ {40}Ar and 40 C a ^ {40}Ca are isobars. 3. Define metallic bond. A metallic bond is the force of attraction between positively charged metal ions and the sea of delocalized free electrons around them. This bond gives metals properties like conductivity and malleability. 4. Define oxidation. Oxidation is a chemical process in which an atom, ion, or molecule loses electrons, or gains oxygen, or loses hydrogen. Example: 2 M g + O 2 → 2 M g O 2Mg + O_2 \rightarrow 2MgO . 5. What is meant by valency? Valency is the combining capa...
Comments
Post a Comment