Skip to main content

Posts

Showing posts from April 27, 2021

Python Introduction

  Python  Introduction:- What is Python? Python is a popular programming language. It was created by Guido van Rossum , and released in 1991. Python programmers are often called Pythonists or Pythonistas. It is used for: web development (server-side), software development, mathematics, system scripting. What can Python do? Python can be used on a server to create web applications . Python can be used alongside software to create workflows. Python can connect to database systems . It can also read and modify files. Python can be used to handle big data and perform complex mathematics. Python can be used for rapid prototyping , or for production-ready software development. Why Python? Python works on different platforms ( Windows, Mac, Linux, Raspberry Pi, etc). Python has a simple syntax similar to the English language. Python has a syntax that allows developers to write programs with fewer lines than some other programming languages. Python runs on an interpreter system, m...

How to Check Whether a Number is Prime Number or Not in C

  How  to Check Whether a Number is Prime Number or Not in C:-  A number is considered as a prime number when it satisfies the below conditions.  A prime number is a number that can be divided by 1 and itself A number that can not be divided by any other number other than 1 or itself is a prime number. It should have only 2 factors. They are 1 and the number itself. ALGORITHMS:-                                               Step 1 . Read a “num” value to check prime or not. Step 2 . set i=1,div=0. Step 3 . if i<=num if true go to step 4, else go to step 7. Step 4 . Check the condition num%i==0 if true then evaluate step 5, else go to step...

How to find the Tringle is Valid or Not in C

 How to find the Tringle is Valid or Not in C:- Code:- #include <stdio.h> int  main() {        int  side_1,side_2,side_3;        int  a,b,c;       printf( "enter the value of sides:" ); scanf( "%d\n %d\n %d" ,&side_1,&side_2,&side_3);       a= ((side_1*side_1)==((side_2*side_2)+(side_3*side_3)));       b= ((side_2*side_2)==((side_1*side_1)+(side_3*side_3)));       c= ((side_3*side_3)==((side_1*side_1)+(side_2*side_2)));       if  (a || b || c)      {         printf( "The triangle is valid" );      }       else      {...