C Program to Find Quotient and Remainder

  #include <stdio.h> int main(){ int num1, num2, quot, rem; printf(“Enter dividend: “); scanf(“%d”, &num1); printf(“Enter divisor: “); scanf(“%d”, &num2); quot = num1 / num2; rem = num1 % num2; printf(“Quotient is: %d\n”, quot); printf(“Remainder is: %d”, rem); return 0; }  

C Program to find the Sum of First n Natural numbers

#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); return 0; }  

C Program to check if a number is palindrome or not

  #include <stdio.h> int main() { int num, reverse_num=0, remainder,temp; printf(“Enter an integer: “); scanf(“%d”, &num); temp=num; while(temp!=0) { remainder=temp%10; reverse_num=reverse_num*10+remainder; temp/=10; } if(reverse_num==num) printf(“%d is a palindrome number”,num); else printf(“%d is not a palindrome number”,num); return 0; }

C Program to check whether a Character is an Alphabet or not

  #include <stdio.h> int main() { char ch; printf(“Enter any character: “); scanf(“%c”,&ch); if( (ch>=’a’ && ch<=’z’) || (ch>=’A’ && ch<=’Z’)) printf(“The entered character %c is an Alphabet”,ch); else printf(“The entered character %c is not an Alphabet”,ch); return 0; }  

C Program to Sort set of strings in alphabetical order

#include<stdio.h> #include<string.h> int main(){ int i,j,count; char str[25][25],temp[25]; puts(“How many strings u are going to enter?: “); scanf(“%d”,&count); puts(“Enter Strings one by one: “); for(i=0;i<=count;i++) gets(str[i]); for(i=0;i<=count;i++) for(j=i+1;j<=count;j++){ if(strcmp(str[i],str[j])>0){ strcpy(temp,str[i]); strcpy(str[i],str[j]); strcpy(str[j],temp); } } printf(“Order of Sorted Strings:”); for(i=0;i<=count;i++) puts(str[i]); return 0; }

Install Python 3.8 on CentOS 7 / CentOS 8

python tutorial

Install Python 3.8 on CentOS 7 / CentOS 8 Step 1: Install Python Dependencies As we’ll install Python from source, let’s install the packages required for Python installation. sudo yum -y groupinstall “Development Tools” sudo yum -y install openssl-devel bzip2-devel libffi-devel Confirm gcc is available: $ gcc –version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) … Read more

How to Install Python 3.8 on Amazon Linux

python tutorial

How to Install Python 3.8 on Amazon Linux Python is a powerful programming language. It is very friendly and easy to learn. During the latest update of this article Python 3.8.0 (of Python 3.8 series) latest stable version is available to download and install. This tutorial will help you to install Python 3.8 on Amazon … Read more

NEET PG Result 2020: नीट पीजी रिजल्ट जारी, जानें क्या रही कटऑफ, ये रहा Direct Link

ctet result 2019

NEET PG Result 2020: नीट पीजी रिजल्ट जारी, जानें क्या रही कटऑफ, ये रहा Direct Link https://www.nbe.edu.in/ Direct Link NEET PG result 2020 declared: नेशनल बोर्ड ऑफ एग्जामिनेशन (NBE) ने गुरुवार शाम नेशनल एलिजिबिलिटी कम एंट्रेंस टेस्ट फॉर पोस्ट ग्रेजुएट्स का रिजल्ट जारी कर दिया। NEET PG Exam देश भर में विभिन्न केंद्रों पर 5 … Read more

C Program to Sort set of strings in alphabetical order

#include<stdio.h> #include<string.h> int main(){ int i,j,count; char str[25][25],temp[25]; puts(“How many strings u are going to enter?: “); scanf(“%d”,&count); puts(“Enter Strings one by one: “); for(i=0;i<=count;i++) gets(str[i]); for(i=0;i<=count;i++) for(j=i+1;j<=count;j++){ if(strcmp(str[i],str[j])>0){ strcpy(temp,str[i]); strcpy(str[i],str[j]); strcpy(str[j],temp); } } printf(“Order of Sorted Strings:”); for(i=0;i<=count;i++) puts(str[i]); return 0; }