Monthly Archives: March 2020

C Program Linear Search in Array

C Program Linear Search in Array #include <stdio.h> int main() { int a[100], item, i, n; printf(“Enter number of elements in array[Maximum 100]=”); scanf(“%d”, &n); for (i = 0; i < n; i++) { printf(“Enter Element Number %d in Array=”, i+1); scanf(“%d”, &a[i]); } printf(“Enter a number to search in array=”); scanf(“%d”, &item); for (i… Read More »

Loading

C Program Natural Numbers One to Ten

What are Natural Numbers? The natural numbers (i.e. counting numbers) are numbers which are used for counting and ordering. They can be expressed mathematically as: ℕ = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, … } . Some mathematicians consider 0 to be a natural number. C Source Code Natural Numbers from One To Ten Display #include<stdio.h> int… Read More »

Loading