Monthly Archives: December 2022

Python Recursive Function Add Numbers

Python Recursive Function Add Numbers – Write a Python Program to display sum of 1 to 10 numbers using recursion. Call this recursive function in main. Python Code – Program With Recursive Function Add Numbers # Write a recursive function to add numbers # from 1 to 10 recursively. Call it from # main function… Read More »

Loading

Average of Array With Pointer

Average of Array With Pointer – Write a C Program to calculate average of array elements using pointers. #include <stdio.h> int main() { int a[50], i,n, sum=0; float average; int *ptr; printf(“\n Write a C Program To:”); printf(“\n Input elements and Find Average in”); printf(“\n Array Using Pointers in C:”); printf(“\n ————————————\n”); printf(” Enter the… Read More »

Loading

Sum of Array Using Pointers

Sum of Array Using Pointers – Write a C program to input n numbers in one dimensional array and find sum of all elements with pointer arithmetic. You will love to read Understanding C Pointers Basic Concepts before reading this program. C Program Sum of Array Using Pointers #include <stdio.h> int main() { int a[50],… Read More »

Loading