ALL > Computer and Education > courses > university courses > undergraduate courses > An Overview of Computer Science > zstu-(2019-2020-1) class >
home work 2 2019526928005 Version 0
👤 Author: by alieusano21gmailcom 2019-09-30 00:34:12
/* file.c
inputing 2 integers and output them in ascending order
written by Alieu A. Sanoe*/

#include<stdio.h>
#include<conio.h>
int e,f,g;

int main()
{
printf("input 2 numbers");
scanf("%d %d",&e,&f);
if (e>f)
{
g=e;
e=f;
f=g;
}
if (f>e)
{
g=f;
f=e;
f=g;
}
printf("%d %d", e,f);
return 0;

}

Please login to reply. Login

Reversion History

Loading...
No reversions found.