Flowchart Flowchart Flowchart are nothing but the graphical representation of the data or the algorithm for a better understanding of the code visually. It […]
Read moreCategory: C
Algorithm
Algorithm Algorithm Before coding a program , the user needs to write the step by step procedure which is known as an Algorithm. “Algorithm is […]
Read moreProgram for diamond shape π
#include <iostream> using namespace std; class A { public: Β Β void show() { Β Β Β Β cout << “Diamond pattern: “; Β […]
Read moreSwaping of 2 numbers
Swapping of 2 numbers Swapping of 2 numbers #include<stdio.h> int main() { int a ; printf(“Enter a :Β “); scanf(“%d,&a); int b ; printf(“Enter […]
Read moreReversing the Array
Reversing the Array Reversing the Array Write a program to takeΒ input of integer array of size 5 and display the array […]
Read morePrint Even Odd with help of function
Print Even Odd with help of function Print Even Odd with help of function #include <stdio.h> #include <stdbool.h> bool isPrime(int num) { if (num […]
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 moreRight Triangle Star Pattern
Right Triangle Star Pattern Right Triangle Star Pattern #include<stdio.h> int main(){ int n; printf(“Enter number\n”); scanf(“%d”,&n); for(int i=1; i<=n; i++) { for(int j=1; j<=i; […]
Read more
Recent Comments