Posts

Showing posts from September, 2018

How to install GUI on Ubuntu Server 16 04

Image

Ex.No. #4 FINDING MAXIMUM FROM A LIST OF NUMBERS (Tamil)

Image
Ex. No. :04     FINDING MAXIMUM FROM A LIST OF NUMBERS Program: list=[]                                                                            list=[2,52,6] print(" Enter the number of elements : ") n=int(input()) print(" Enter the elements : ") for i in range(0,n):    a = int(input())    list.append(a) max=list[0] for i in range(len(list)):    if list[i]>max:       max=list[i] print(" Maximum number is : ",max)                 ...

Ex.No.: #4 FINDING MAXIMUM FROM A LIST OF NUMBERS (English)

Image
Ex. No. :04     FINDING MAXIMUM FROM A LIST OF NUMBERS Program: list=[]                                                                            list=[2,52,6] print(" Enter the number of elements : ") n=int(input()) print(" Enter the elements : ") for i in range(0,n):    a = int(input())    list.append(a) max=list[0] for i in range(len(list)):    if list[i]>max:       max=list[i] print(" Maximum number is : ",max)                 ...

Ex.No. #3 EXPONENTIATION OF A NUMBER (Tamil)

Image
Ex. No. : 03    EXPONENTIATION OF A NUMBER Aim: To write a Python program to find the exponentiation of a number. Program: b=int(input(" Enter the base value : "))                    5 e=int(input(" Enter the power : "))                            3 p=1 for i in range(e):         0,1,2    0           i=1                                i=2                           ...