Video 23: C Programming Nested loop, Neted for, prime no from 1 to100

Video 23: C Programming Nested loop, Neted for, prime no from 1 to100

Ex.81 Multiplication Table from 1 to 10 Ex. 82 Print prime number from 1 to 100 Ex.83 Print Armstrong number from 1 to 500 Ex.84 Perfect Number Check (1–1000) For each number, sum its divisors (inner loop) and check equality. Ex. 85 Write a program to generate all combinations of 1, 2 and 3 using for loop. Ex.86 Write a program to determine all Pythagorean triplets in the range 1 to 20. Ex.87 Write a program to accept a number and check whether it is a Peterson number or not. A Peterson number is a number in which the sum of the factorials of its digits is equal to the number itself. Sum of factorials of digits = number. Example: 145 → 1! + 4! + 5! = 145. Ex.88 Find all numbers whose Digits Multiply to a Given Product Retrict to upto two digits from 10 to 99. Digit Multiplication. For e.g. Number is 8. 18=1*8=8, 24=2*4=8, 42=4*2=8, 81=8*1=8 Ex.89 Accept three number a,b,c from 1 to 100. Find pairs such that a3+b3=c2 Ex.90 For every number between 1–50, print all its factor pairs (i, j) where i × j = number. Example: 6: (1,6), (2,3) 8: (1,8), (2,4) Ex.90 For every number between 1–50, print all its factor pairs (i, j) where i × j = number. Example: 6: (1,6), (2,3) 8: (1,8), (2,4)