ADDING TWO INTEGERS IN C<br />CLIK HERE<br />
<ul><li>ADD THE HEADER FILES REQUIERD FOR      THE PROGRAM.   (e.g.) :		#include<stdio.h>		#include<conio.h></li></li></ul...
Adding two integers in c
Adding two integers in c
Adding two integers in c
Adding two integers in c
Adding two integers in c
Adding two integers in c
Adding two integers in c
Adding two integers in c
Upcoming SlideShare
Loading in...5
×

Adding two integers in c

1,002

Published on

this help to under stand simple c program for biginers

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,002
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Adding two integers in c

  1. 1. ADDING TWO INTEGERS IN C<br />CLIK HERE<br />
  2. 2. <ul><li>ADD THE HEADER FILES REQUIERD FOR THE PROGRAM. (e.g.) : #include<stdio.h> #include<conio.h></li></li></ul><li><ul><li>BEGIN THE MAIN FUNCTION. (e.g.): void main() { }</li></li></ul><li><ul><li>DECLAR THE VARIEABLE REQUIRED FOR THE PROGRAM . (e.g.) int num1,num2,sum;</li></li></ul><li><ul><li> ADD THE SPECIAL FUNCTION LIKE CLEAR SCREEN & GET CHARACTER IF REQUIRED.(e.g.): clrscr();(at beginning of the program) getch();(at last of the program)</li></li></ul><li><ul><li>PRINT THE USER FRINEDLY COMMAND LINE TO ASK THE INPUT FROM THE USERUSING THE PRINTF FUNCTION.(e.g.):printf(“ENTER THE TWO INTEGERS TO ADD..”);</li></li></ul><li><ul><li>GET TWO INTEGER VALUES FROM THE USER TO USING SCANF FUNCTION.(e.g.): scanf(“%d%d”,&num1,&num2);</li></li></ul><li><ul><li>BEGIN THE EXECUTION PART OF THE PROGRAM .(e.g.): sum=num1+num2;</li></li></ul><li><ul><li>PRINT THE ADD (OR) EXECUTED VALUE TOTHE USER WITH THE CONTROL & USER FRIENDLY STRINGS. (e.g.): printf(“THE ADDED VALUE IS%d”,sum);</li></li></ul><li><ul><li>THE PROGRAM WILL END.</li>

×