Professional Documents
Culture Documents
Artificial Intelligence
Artificial Intelligence
Artificial Intelligence
1
INDEX
1. Question1 code and output ………… 3
2. Question2 code and output ………… 4
3. Question3 code and output ………… 5
4. Question4 code and output ………… 6
5. Question5 code and output ………… 7
6. Question6 code and output ………… 8
7. Question7 code and output ………… 9
2
Question-1
Code
cp=int(input("Enter your cost price : "))
tp=(profit/100*cp)
sp=cp+tp
Output
3
Question-Q2
Code :
a=int(input("Enter any number to fint sqaure of it : "))
area=(a*a)
print("Area of side",a,"is",area)
Output :
4
Question-Q3
Code
temp=float(input("Enter the temperature in celcius : "))
fren=(temp*9/5+32)
Output :
5
Question - Q4
Code
maths=int(input("enter your maths marks : "))
avg=(sci+maths+sst+eng+hin/5)
print(avg)
Output :
6
Question - Q5
Code
num=int(input("Enter the number : "))
area=num*num
cube=num**3
Output :
7
Question - Q6
Code
dol=int(input("enter the amount in dollars : "))
rup=dol*80
Output :
8
Question - Q7
Code
prin=int(input("Enetr the priciple amount : "))
time=2
si=prin*rate*time/100
Output :