Tuesday, February 4, 2014

Tasks for C




New tasks


Hi and welcome back on learn 4 free programming!

Here is a couple of tasks from C for you to practice!

If you need help, or if you need the code send me an email on : sashans89@gmail.com  and will help you.

Tasks:




  1. Write a C program that get's two numbers ( num1 and num2 ) from user and compare them ( greater, less than or equal to ). On the screen it should write message "greater, less than or equal to" ?
  2. Write a C program which gets two number ( num1 and num2 ) from user. If both numbers are greater than 10 then addition numbers ( num1+num2 ), if both numbers are less than 10 then multiply those two numbers ( num1*num2 )?
  3. * Write a C program that simulates calculator. Calculator should have to work until Esc is pressed. After entering operation program needs to carry out this operation until you press esc ( example : op = * program is going to multiplication num1 and num2 and if esc key is not pressed it will ask for another number and multiplicate that with num1,num2 )? 


* - Special task :)

Have fun solving these task, more to come.

See you next time ;).
Byee...

Sasha

No comments:

Post a Comment