C Program [ Tutorial 02 ] [ Add,substract,multiply,divide,modulo ] [by Deep Modi ]

Published: 08 February 2014
on channel: Modi Deep
9,724
30

Software Website: http://deepappsstore.weebly.com
Educatinal website: http://deepinfosharing.weebly.com
Read this Topic in detail: http://deepinfosharing.weebly.com/bas...

Here we add two header file: stdio.h and conio.h
stdio means standard input output.
conio means console input output.
the function printf and scanf were stored in the stdio.h file while clrscr, getch function were stored in the conio.h
Printf: this is output. The text written in (" ") will give the output.
scanf: this is input. here we must clear that where the input is stored. as to stored input on variable a then it will be "&a" not only "a" as "&" is used to stored, else we get garbage value.
\n means" new line
a+b; a-b; a*b; a/b;a%b; are the common so here we don't require to add math.h (header file)
In the video I don't clear about the a%b: You must try it.
What it will do is: if you type 9 as input and b as 4 then calculate a/b is not possible.
if you do then your ans will be 2 but real there will be 1 as in reminder ok?
Ok if you type a%b then your output will be 1

Practice Work:
Create a C Program that convert days into month with the help of divison (/) and module (%)
→ Hint: By using "/" we get month and by using "%" we get left days (reminder)
► Solution here:    • Converting days into month [ C Program ] [...  
Create a C Program that find area of circle.
→ Hint: Area of circle = π r ²; π = 3.14; r = radius.
► Solution will be soon.
Create a C Program that Find the hypotenuse of the triangle.
→ Hint: (ab)² + (bc)² = (ca)²; ca = hypotenuse
► Solution will be soon

Previous Tutorial:    • Hello World [ C Program ] [ Tutorial 01 ] ...  
Next Tutorial:    • C Program Tutorial #3 ► If and else if Sta...  

And if you are succeed then comment I got the solution but please don't add the solution here, I will create a video on this too. for those who failed.

I hope from the video you will able to do your homework
Best of Luck.

This is for beginners.


Watch the Video at maximum quality. :480p (for HD clear performance)

Visit my website for those software I create and also the best software that needed were available on my website.
software website: http://deepappsstore.weebly.com
Learn about Programming: visit my education site: http://deepinfosharing.weebly.com

Download Turbo C from my website: http://deepappsstore.weebly.com/turbo...
Download DOSBox to run C on fullscreen (windows 7 or later): http://deepappsstore.weebly.com/turbo...
Thanks for watching.
Please Like, Comment and Subscribe.


On this page of the site you can watch the video online C Program [ Tutorial 02 ] [ Add,substract,multiply,divide,modulo ] [by Deep Modi ] with a duration of hours minute second in good quality, which was uploaded by the user Modi Deep 08 February 2014, share the link with friends and acquaintances, this video has already been watched 9,724 times on youtube and it was liked by 30 viewers. Enjoy your viewing!