sol3 - 3 ' - 1( #include <stdio.h> int main() cfw_...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
'סמ ליגרת-תונכת סרוק 3 ןורתפל אמגוד 1 םומיסקמ בושיח ( #include <stdio.h> int main() { int x1,x2,x3,x4; int max; scanf( "%d %d %d %d" , &x1, &x2, &x3, &x4); max = x1; if (max < x2) { max = x2; } if (max < x3) { max = x3; } if (max < x4) { max = x4; } printf( "The maximum is %d\n" ,max); return 0; } 2 תרבועמ הנש ( #include <stdio.h> int main() { const int currentYear = 5768; int year,residual; scanf( "%d" , &year); if (year <= currentYear) { printf( "%d is not a legal year! - abort\n" , year); return 0;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

sol3 - 3 ' - 1( #include &lt;stdio.h&gt; int main() cfw_...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online