sol2 - 2 ' - 1( #include int main() cfw_ int...

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

View Full Document Right Arrow Icon
'סמ ליגרת-תונכת סרוק 2 ןורתפל אמגוד 1 סחיו עצוממ בושיח ( #include <stdio.h> int main() { int num1, num2; printf( "Enter first number: \n" ); scanf( "%d" ,&num1); printf( "Enter second number: \n" ); scanf( "%d" ,&num2); printf( "The average is %g\n" ,(( double )num1 + num2)/2); printf( "The ratio is %g\n" ,( double )num1/num2); return 0; } 1 י'צאנוביפ תרדס ( #include <stdio.h> int main() { int fib_n0, fib_n1; int fib_n2, fib_n3, fib_n4; printf( "Enter a number from Fibonacci series: \n" ); scanf( "%d" ,&fib_n0); printf( "Enter consequent Fibonacci number: \n"
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.

This note was uploaded on 01/10/2010 for the course CS 463 taught by Professor Can'tsay during the Spring '09 term at Haaga - Helia University of Applied Sciences.

Page1 / 2

sol2 - 2 ' - 1( #include int main() cfw_ int...

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