Your SlideShare is downloading. ×
Adding two integers in c
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Adding two integers in c

967
views

Published on

this help to under stand simple c program for biginers

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
967
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ADDING TWO INTEGERS IN C
    CLIK HERE
  • 2.
    • ADD THE HEADER FILES REQUIERD FOR THE PROGRAM. (e.g.) : #include<stdio.h> #include<conio.h>
    • BEGIN THE MAIN FUNCTION. (e.g.): void main() { }
    • DECLAR THE VARIEABLE REQUIRED FOR THE PROGRAM . (e.g.) int num1,num2,sum;
    • 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)
    • 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..”);
    • GET TWO INTEGER VALUES FROM THE USER TO USING SCANF FUNCTION.(e.g.): scanf(“%d%d”,&num1,&num2);
    • BEGIN THE EXECUTION PART OF THE PROGRAM .(e.g.): sum=num1+num2;
    • PRINT THE ADD (OR) EXECUTED VALUE TOTHE USER WITH THE CONTROL & USER FRIENDLY STRINGS. (e.g.): printf(“THE ADDED VALUE IS%d”,sum);
    • THE PROGRAM WILL END.