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 moreMonth: October 2023
Reversing 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 moreMicrosoft logo program
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div class=”box”> <div id=”box1″></div> <div id=”hello”></div> </div> <div class=”down”> <div id=”kk”></div> <div id=”ll”> </div> </div> <br /> […]
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 moreFish pattern program
#include<stdio.h> int main() { int x,y,t; for(t=0;t<50;t++) { for(y=7;y>-8;y–) { for(x=-7;x<=10;x++) { if(y==7) { if((x+t)%2!=0) printf(“–“); else printf(“~~”); } else if(y==-7) printf(“__”); else if(y==6) […]
Read moreButterfly Pattern Program
Butterfly Pattern Program Butterfly Pattern Program #include<stdio.h> int main(){ int n; scanf(“%d”,&n); for(int i=1;i<=n;i++){ […]
Read more
Recent Comments