Ticker

6/recent/ticker-posts

PROGRAMME FOR THE ADDITION OF TWO NUMBERS

 PROGRAMME FOR THE ADDITION OF TWO NUMBERS

#include<stdio.h


                  #include<conio.h>


void main() (OR) int main(){


int a, b, sum;


printf("Enter first number - ");


scanf("%d",&a);


printf("Enter second number - ");


scanf("%d",&b);


sum = a + b;


printf("The Addition of numbers %d and %d is %d",a,b,sum);


getch();

 return 0 ; //you should write return 0 if you use int main () . Otherwise please ignore it .

}

  I am requesting to all the learners . please don't copy & paste the programme .just see the programme and analyse yourself and then type the programe by your own hands . then only you will gain the knowledge otherwise you will face so much difficulties  

    

   Output :-   



 



Post a Comment

0 Comments