C Program To Find Sum Of N Natural Numbers
C Program To Find Sum Of N Natural Numbers Example We are using for loop to find sum. #include<stdio.h> void main() { int i, sum; sum = 0; for (i …
C Program To Find Sum Of N Natural Numbers Example We are using for loop to find sum. #include<stdio.h> void main() { int i, sum; sum = 0; for (i …
Python Program To Find Factorial Of A Number Method-01 Using recursion def findFactorial(N): if(N==1): return 1 return N*findFactorial(N-1) # N = int(input(“Enter the input: “, )) N=6 factorialValue=findFactorial(N) print(“Factorial: “,factorialValue) …
C Program To Print Capital A To Z Alphabet Example In this example, we are using “%c” to show numerical value(ASCII) into Alphabet. #include<stdio.h> void main() { int i; printf(“nA …
Python Program To Print Hello World! This is very first program of every newbie in the programming field. It means how to show/display the string on the monitor. So let’s …
Python Program To Find Sum Of Arithmetic Progression Series Everybody know about the “Arithmetic Progression Series” that is usually asked very frequently in maths subjects. So there are many popular questions …
Python Program To Print Fibonacci Series 01. Method Fibonacci series without using recursion. def fibonacci(n): n1 = 0 n2 = 1 sum = 0 if n == 1: print(“Fibo Series: …
Python Program To Sort Array Method-01 Using predefine sort() function def sortArray(array): array.sort() print("Sorted Array: ",array) A = [30, 50, 10, 70, 90, 120] sortArray(A) Output: Sorted Array: [10, 30, …
Truth Table: A1 A0 B1 B0 X(A=B) Y(A>B) Y(A<B) 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 …
Interfacing of Soil-Moisture Sensor with Arduino, Blynk, Bluetooth Components Required: Hardware Required: Arduino UNO and Cell-Phone OTG Cable Arduino Cable Soil-Moisture Sensor Sample Soil Bluetooth HC-05 Module Jumper Wires …
Write a python program to calculate Mean using List. def findMean(mList): print(sum(mList)/len(mList)) dataList = [60, 120, 130, 140, 150, 70, 80, 90, 100, 110,111,112] findMean(dataList) Output: 106.08333333333333