Showing posts from May, 2022
TOC - Introduction 1.1 Set Set is a collection of well defined objects. For example: V={a,e,i,o,u}, N={0,1,2,3,..........} etc. 1.1.1 Types of sets: i. Empty Set: A set having no elements is a empt…
Loops in C programming (for loop/ while loop / do while loop) C program calculate factorial of a number given by user. #include<stdio.h> main() { int n,i; double fact=1; printf("Enter a number: "); scanf("%d",&n); …