Simple Program to remove Duplicate Element in an Array

Simple Program to remove Duplicate Element in an Array

Simple Program to remove Duplicate Element in an Array   #include<stdio.h> #include<conio.h> void main() { int a[20], i, j, k, n; clrscr(); printf(“\nEnter array size: “); scanf(“%d”, &n); printf(“\nEnter %d array element: “, n); for(i = 0; i < n; i++) { scanf(“%d”, &a[i]); } printf(“\nOriginal array is: “); for(i = 0; i < n; … Read more

Bihar Board 10th Result 2020 आज बीएसईबी बिहार बोर्ड मैट्रिक रिजल्ट

bihar board result

Bihar Board 10th Result 2020 आज बीएसईबी बिहार बोर्ड मैट्रिक रिजल्ट Bihar Board 10th Result 2020: आज जारी हो सकता है बीएसईबी बिहार बोर्ड मैट्रिक रिजल्ट बिहार बोर्ड के मैट्रिक के परिणाम BSEB की आधिकारिक वेबसाइट्स http://www.bsebinteredu.in, www.biharboardonline.bihar.gov.in, http://bsebbihar.com  पर भी चेक कर सकेंगे। Bihar 10th Result 2020 Soon: Latest update indicates that BSEB Matric … Read more

C Program example to Find Quotient and Remainder

c prgram avoid goto

C Program example to Find Quotient and Remainder #include<stdio.h> int main() { printf(“\n\n\t\tEduguru – C prgram example\n\n\n”); int c, d, n, a[100], b[100]; printf(“\n\nEnter number of elements in array :”); scanf(“%d”, &n); printf(“\n\nEnter %d elements\n”, n); for(c = 0; c < n; c++) scanf(“%d”, &a[c]); /* temporarily storing elements into array b starting from end … Read more

C Program to find the Sum of First n Natural numbers using for loop

C Program to find the Sum of First n Natural numbers

C Program to find the Sum of First n Natural numbers using for loop   #include <stdio.h> int main() { int n, count, sum = 0; printf(“Enter the value of n(positive integer): “); scanf(“%d”,&n); for(count=1; count <= n; count++) { sum = sum + count; } printf(“Sum of first %d natural numbers is: %d”,n, sum); … Read more

C Program to print the Multiplication Table of any Number

multiplication table program in c

C Program to print the Multiplication Table of any Number #include<stdio.h> int main() { printf(“\n\n\t\tEduguru – C Program Example\n\n\n”); int n,i; printf(“Enter an integer you need to print the table of: “); scanf(“%d”, &n); printf(“\n\n\n”); for(i = 1; i <= 10; i++) { printf(“\n\t\t\t%d * %d = %d \n”, n, i, n*i); } printf(“\n\n\n\n\t\t\tAll Done … Read more

Program to check if input Number is int or float

pointer program example in c

Program to check if input Number is int or float #include<stdio.h> #include<conio.h> #include<string.h> int main() { printf(“\n\n\t\tEduguru – C Program example\n\n\n”); char number[10]; int flag = 0; int length, i = 0; printf(“\n\nEnter a number: “); scanf(“%s”, number); length = strlen(number); // till string does not end while(number[i++] != ‘\0’) // same as while(length–>0) { … Read more

SVG Ellipse – example

SVG Ellipse

SVG Ellipse – <ellipse> example <!DOCTYPE html> <html> <body> <svg height=”150″ width=”500″> <ellipse cx=”240″ cy=”100″ rx=”220″ ry=”30″ style=”fill:purple” /> <ellipse cx=”220″ cy=”70″ rx=”190″ ry=”20″ style=”fill:lime” /> <ellipse cx=”210″ cy=”45″ rx=”170″ ry=”15″ style=”fill:yellow” /> Sorry, your browser does not support inline SVG. </svg> </body> </html>   Output:   Example 2:  <!DOCTYPE html> <html> <body> <svg height=”100″ … Read more

C Program to calculate Power of N using Recursion

c program to add 2 numbers

C Program to calculate Power of N using Recursion   #include<stdio.h> // function prototype declaration int power(int n1, int n2); int main() { printf(“\n\n\t\tStudytonight – Best place to learn\n\n\n”); int base, exp; printf(“Enter base number: “); scanf(“%d”, &base); printf(“\n\nEnter Power factor: “); scanf(“%d”, &exp); printf(“\n\n\n\t\t\t%d^%d = %d”, base, exp, power(base, exp)); printf(“\n\n\t\t\tCoding is Fun !\n\n\n”); … Read more

Program to find Palindrome using Recursion

palindrome program in c

Program to find Palindrome using Recursion A Palindrome is a sequence that if reversed looks identical to the original sequence Eg : abba, level, 999 etc. #include<stdio.h> // declaring the recursive function int isPal(int ); /* global declaration to use the same value in both the functions */ int n; int main() { printf(“\n\n\t\tStudytonight – … Read more

SVG Line –

SVG Line

SVG Line – <line>   <!DOCTYPE html> <html> <body> <svg height=”210″ width=”500″> <line x1=”0″ y1=”0″ x2=”200″ y2=”200″ style=”stroke:rgb(255,0,0);stroke-width:2″ /> Sorry, your browser does not support inline SVG. </svg> </body> </html> Code explanation: The x1 attribute defines the start of the line on the x-axis The y1 attribute defines the start of the line on the … Read more