[#2] Adding two number [C - Language Programme] (codewithharry-#4)
C - Language #2 Programme [Adding two number]
All Codes
#include<stdio.h>
int main()
{
int a, b;
printf("Enter number a\n");
scanf("%d", &a);
printf("Enter number b\n");
scanf("%d", &b);
printf("the sum is %d\n", a+b);
return 0;
}
All Syntax (use in programme)
"int a, b" - do integer ko define kiya hua hai
"Scanf" - yah ek header file ka funtion hai . Ek hi value ko user se lene ke liye use hua hai.
"&a" - adress of a
"&a" - adress of b
"\n" - New line character
Click here to Download the file.
Comments
Post a Comment