« Back to profile of hhaammaadd

    						#! /usr/bin/env python
while True:
    a = raw_input("choose (F or C):")
    if(a =='F' or a =='f'):
        F = input("F = ")
        C =(5.0/9.0)*(F -32.0)
        print"C =", C
    
    elif(a =='C' or a =='c'):
        C = input("C = ")
        F = C/(5.0/9.0)+32
        print"F =", F
    else:
        break    			         

    1 comments

  • mac_kaka says :

    لمادا كتبت while:true

Add comment
To add a comment, please : Login or Sign up
    hhaammaadd
    حمد محمد
  • New visitor?

    On setCode, you can save your codes, functions and classes, you can also share them with your friends, and track your favorite developer

    Join the SetCode community
  • Your language here :