addition of two numbers in c
#include <stdio.h>
int main() {
int number1, number2, sum;
printf("Enter two integers: ");
scanf("%d %d", &number1, &number2);
// calculating sum
sum = number1 + number2;
printf("%d + %d = %d", number1, number2, sum);
return 0;
}
int num1,num2;
printf("%d",num1+num2);#include<stdio.h>
int main() {
int a, b, sum;
printf("\nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Also in C:
- oop244
- how to login to another user in powershell
- Ionic 3 camera plugin not returning video from photo library on ios
- #pragma pack(1) in c
- how to add to the end of a linked list
- simpy process return value
- how to do Employing defensive code in the UI to ensure that the current frame is the most top level window
- keras conv2d batchnorm
- get configuration script window 7
- c how to define a variable
- what is the meaningof noremap
- powershell search big files
- sdl texture error
- warning: function returns address of local variable [-Wreturn-local-addr]
- kadane's algorithm
- coin row problem in linear time
- macos prevent disk mounting
- char to int c
- print double with 2 decimals c
- create point cloud from rgbd image in open3d v0.10
- malloc c
- arduino keypad wait for key
- read from command line c
- run a command in cmd with c