hello guys today i m gonna show u a basic program to add to no....
so there are five airthematic operator in c/c++
#include<stdio.h>
void main()
{
int a,b;
scanf("%d %d",&a,&b); //inputing two no from the user
printf("\n addition = %d",a+b);
}
so this way we can add subs or perform any mathematical operation ....
we can also use 3 variable to perform same action by writing
c=a+b;
printf("addition=%d",&c);
so there are five airthematic operator in c/c++
- + addition
- - substraction
- * multiplication
- / division
- % mod/remainder
#include<stdio.h>
void main()
{
int a,b;
scanf("%d %d",&a,&b); //inputing two no from the user
printf("\n addition = %d",a+b);
}
so this way we can add subs or perform any mathematical operation ....
we can also use 3 variable to perform same action by writing
c=a+b;
printf("addition=%d",&c);
0 comments:
Post a Comment