\Read two one-digit positive decimal numbers from the user and subtract the first from
the second. Output the answer as a decimal number and as an 8-bit binary number.
2-
program should find the smallest number and stores it in a fourth variable W
.
3- Rewrite the following C-code in assembly language:
int x, y;
cout<<“enter the value of x”;
cin>> x;
cout<<“enter the value of y”;
cin>>y;
while (x != y){
if (x > y)
x = x - y ;
else
y = y - x ;
}
cout<<"the value of x = "<<x;
4-
and stores them in an array. Your program sorts the ten characters into ascending
order by ASCII code and then prints the list of sorted characters on the next line.
5- Write an assembly language program that perform following functionality when
executed:
· Make a new file at a folder named “myfolder”.
· Open file when we press key “O”
· Close file when we press key “C”
· And file is deleted when we press “D”