Sum and Average of an Array Sum and Average of an Array Code : #include<stdio.h> int main(){ int n; int sum=0; […]
Read moreTag: c programming
Swapping two number using Function (Call By Reference)
Swapping two number using Function (Call By Reference) Swapping two number using Function (Call By Reference) Question: Write a program to swap two […]
Read moreFind the day of the week you were born!
// Please enter your birthday in this // format(including spaces): // DD MM YYYY // 22 01 1997 #include <iostream> using namespace std; int […]
Read moreMultiple of Matrix in c
Multiple of Matrix in c Multiple of Matrix in c #include <stdio.h> // Function to multiply two matrices void multiplyMatrices(int firstMatrix[10][10], int secondMatrix[10][10], int […]
Read moreProgram in Switch Statement
Program in Switch Statement Program in Switch Statement Switch statements : Switch case statements can be used to execute the condition code based on the […]
Read moreTo check weather a number is Prime or Not
To check weather a number is Prime or Not To check weather a number is Prime or Not Question: Write a C program […]
Read moreProgram for diamond shape
#include <iostream> using namespace std; class A { public: void show() { cout << “Diamond pattern: “; […]
Read morePrograms in C language
Programs in C language Programs in C language Ques 1: Write a program to find out whether it is an odd number or even […]
Read moreTernary Operator
Ternary Operator Ternary Operator Syntax: Condition ? Expression 1(True) : Expression 2(False) ; Program: To check wheather the given number is even or odd […]
Read moreFactorial of a number using Recursion
Factorial of a number using Recursion Factorial of a number using Recursion #include <stdio.h> //Function Prototype Declaration int factorial (int a); int main() […]
Read more
Recent Comments