Posts

Showing posts with the label algorithm

algorithm to check year is leap year or not

            C program check year is leap year or not( flowchart ) start  input x div=x/4 if rem=0print true otherwise print false stop

algorithm to input three value and calculate there percentage

            C program calculate there percentage ( flowchart ) start input a,b,c mul=a+b+c*100 div=mul/300 print div stop

algorithm to calculate area of the triangle

              C program calculate area of triangle( flowchart ) start  input b,h tri=0.5*b*h print tri stop

algorithm to calculate area of the circle

C program to calculate area of the circle( flowchart ) start  input r cir=3.14*r*r print cir stop

algorithm to calculate area of the rectangle

                    C program to calculate area of the rectangle( flowchart ) start  input l,b rec=l*b print rec stop

algorithm to calculate area of the square

                 C program to calculate area of the square( flowchart ) start  input x sq=x*x print sq stop

c program to exchange the value of 2 variables without using third variable algorithm

C program to exchange the value of 2 variables without using third variable( flowchart) start  input x,y x=X+y y=x-y x=x-y print x y stop

c program to exchange values of two numbers algorithm

C program to exchange values of two numbers( flowchart ) start input a,b,c c = a then a=b b=c print a,b stop 

c program to check number is even or odd algorithm

C program to check value is even or odd( flowchart ) start  input a a/2 if remender is 0 print even otherwize odd stop

c program to check number is positive or negative algorithm

C program to check number is positive or negative ( flowchart ) start input a if a>0 then  print positive otherwiese  print negative stop

average of any three number algorithm

C program to find average of any three number( flowchart ) start  input average <-sum/3 print average stop