Ticker

6/recent/ticker-posts

PROGRAMME FOR THE SUBSTACTION OF TWO NUMBERS

PROGRAMME FOR THE SUBSTACTION OF TWO NUMBERS




                                                                                        #include<stdio.h>

#include<conio.h>


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


int a, b, sub;


printf("Enter first number - ");


scanf("%d",&a);


printf("Enter second number - ");


scanf("%d",&b);


                                                                       sub = a - b;


printf("The subtraction of numbers %d and %d is %d",a,b,sub);


getch();

 return 0 ; //you should write return 0 if you use int main ()

}

       I am requesting to all the learners .please don't  copy & paste the programme  . just see the                        programme 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