Skip to content

Instantly share code, notes, and snippets.

@OwiseKyawMinOo
Created March 10, 2018 17:09
Show Gist options
  • Save OwiseKyawMinOo/0b0c1cccdbe00835243c11f4df1baef3 to your computer and use it in GitHub Desktop.
Save OwiseKyawMinOo/0b0c1cccdbe00835243c11f4df1baef3 to your computer and use it in GitHub Desktop.
>> % Project 1
>> % Owise Kyaw Min Oo
>>
>> Temperature=input('Enter temperature range : ');%for user input
Enter temperature range : 35.2
>> disp(Temperature);%printing text or matrics
35.2000
>> disp('Temperature');
Temperature
>> fprintf('Temperature is %f degree C \n',Temperature);
Temperature is 35.200000 degree C
>> fprintf('Temperature is %8.1f degree C \n',Temperature);
Temperature is 35.2 degree C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment