Write a program for add 2 numbers(programmers depend & user depends)kanai
Welcome friends to my youtube channel Ks Editing and Printing . Here I am trying to discus about any help about computer . If you have any confusion about any types of computer , you can comment bellow or you can ask me on whatsapp group or facebook page.
My facebook page is : https://facebook.com/ksandroid/
/*this program is for programmer basis */
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();//for clear the screen
int first,second,third;
first=10;
second=20;
third=(first+second);
printf("Your addition result is %d",third);
getch();
}
/*this program is for User basis */
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();//for clear the screen
int first,second,third;
scanf("%d %d",&first,&second);
third=(first+second);
printf("Your addition result is %d",third);
getch();
}