#include<stdio.h>
int main() {
int a, b, sum;
printf("
Enter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Enter two integers: 12
11
12 + 11 = 23
int n,m;
printf("%d",n+m);
#include <stdio.h>
int addNumbers(int a, int b)
{
int sum = a + b;
return sum;
}
int main(void)
{
int a = 4;
int b = 7;
printf(addNumbers(a,b));
return 0;
}
Code Example |
---|
C :: getopt optstr |
C :: increment c |
C :: esp rainmaker led |
C :: C Nested if...else |
C :: unia c |
C :: what to do after autoencoder training |
C :: %d and %i |
C :: how to devowel string in c program |
C :: ringing a bell using c |
C :: largest value in u32 |
C :: how to make play a song javascript |
C :: function declaration in c |
C :: terrenery opertori with return in c |
C :: wordpress clean name spaces |
C :: what is float in c |
C :: merge sort in c |
C :: recursion c prime number |
C :: default password raspberry pi |
Dart :: flutter text form field change underline color |
Dart :: how to change input text color in flutter |
Dart :: flutter textfield rounded |
Dart :: flutter singleton |
Dart :: flutter auto height container |
Dart :: refresh indicator flutter |
Dart :: dart async vs async* |
Dart :: generate method o dart list |
Dart :: underscore dart |
Dart :: flutter icon tap |
Dart :: compute flutter |
Dart :: unable to locate android sdk flutter in windows |