1 / 1

int a,b,c,max; printf ( “Dose 3 arithmous” ); ‘ scanf ( “%d %d %d” ,&a,&b,&c); max = a

Μεγαλύτερος από 3 αριθμούς. int a,b,c,max; printf ( “Dose 3 arithmous” ); ‘ scanf ( “%d %d %d” ,&a,&b,&c); max = a if ( b > max ) { max = b; } if ( c > max ) { max = c; } printf ( “ Megaliteros einai o %d “ , max);. c. a. b. max. 512. 12. 512. 35. 6. 512. 512.

baxter
Download Presentation

int a,b,c,max; printf ( “Dose 3 arithmous” ); ‘ scanf ( “%d %d %d” ,&a,&b,&c); max = a

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Μεγαλύτερος από 3 αριθμούς int a,b,c,max; printf(“Dose 3 arithmous”);‘ scanf(“%d %d %d”,&a,&b,&c); max = a if ( b > max ) { max=b; } if( c > max ) { max = c; } printf(“Megaliteros einai o %d“, max); c a b max 512 12 512 35 6 512 512 35 12 True False printf(“Dose 3 ariumous”); scanf(“%d %d %d”,&a,&b,&c); max = a Dose 3 arithmous 2 3 5 6 1 b>max max=b Megaliteros einai o 35 c>max 1 2 3 5 6 Enter max = c Γιάννης Χουβαρδάς - AI Lab Printf(“Megaliteros einai o %d” ,max);

More Related