SHARE
TWEET

Untitled

a guest Feb 17th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(){
  6.     int t1,t2,t3;
  7.     printf("Tempo:");
  8.     scanf("%d",&t1);
  9.     printf("Tempo:");  
  10.     scanf("%d",&t2);
  11.     printf("Tempo:");  
  12.     scanf("%d",&t3);
  13.    
  14.     if( t1<t2 && t2<t3){
  15.         printf("%d\n",1);
  16.         printf("%d\n",2);
  17.         printf("%d\n",3);}
  18.     else if (t2<t1 && t1<t3){
  19.         printf("%d\n",2);
  20.         printf("%d\n",1);
  21.         printf("%d\n",3);}
  22.     else{
  23.         printf("%d\n",3);
  24.         printf("%d\n",2);
  25.         printf("%d\n",1);
  26.        
  27.     }
  28.    
  29.     getch();
  30.    
  31.     return 0;
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top