adding integers and double in c

Solutions on MaxInterview for adding integers and double in c by the best coders in the world

showing results for - "adding integers and double in c"
Malak
13 Nov 2019
1#include <stdio.h>
2int main() {    
3	int sum_tot = 0;
4    int num_1, num_2;    
5    printf("Please, Enter First integer: ");
6    scanf("%d", &num_1);
7    printf("\nNow Please, Enter Second integer: ");
8    scanf("%d", &num_2);
9
10    sum_tot = num_1 + num_2;      
11    
12    printf("\n%d + %d = %d", num_1, num_2, sum_tot);
13    return 0;
14}
Martina
08 Oct 2018
1#include <stdio.h>
2int main(void)
3{
4	int a, b, int_sum;
5    double c, d, decimal_sum;
6    
7    printf("Enter two integers: "); 
8    scanf("%i%i", &a, &b);
9    
10    int_sum = a + b;
11  
12 	printf("Enter two decimal numbers: ");
13	scanf("%lf%lf", &c, &d);
14  
15 	decimal_sum = c + d;
16  
17  	printf("The sum of a + b is %i\nThe sum of c + d is %lf", int_sum, decimal_sum);
18  
19  	return 0;
20}  
Daniele
20 Oct 2018
1#include<stdio.h>
2int main() {
3int a, b, sum;
4printf("\nEnter two no: ");
5scanf("%d %d", &a, &b);
6sum = a + b;
7printf("Sum : %d", sum);
8return(0);
queries leading to this page
sum of two numbers addition of two numbers in c using recurionhow to print sum of two numbers in cc program add of two numberreturn the sum of all two digit numberswrite a c program to add two integers entered by user how many ways can sum be with two numberhow to concatenate two integers in cadditin of two double number in chow to sum twon numbersadd two numbers in chow to combine integers in csum of two 2 numericfind sum of all numbers that are multiples of 3simple c program to add two numberswrite a program to add the 2 given numbers and return sum in cadd all the digits together cadding two numbers in caddiyion of 2 number in csum in c programc program to add two numbers using functionsadd two large numbers in cadd two number characters in cc program to add 2 numbersc add 2 numbers togetherc program to add two large numbersc program to print the sum of two numbersc program addition of two numbers using functionwrite c program to add two numberswrite a program in c to add two integerssum of 2 numbers c programadd 2 numbers in cc imaginary numberswrite a c program to add two numbers without using addition operatoraddation of 2 values in cfunction to add two nums cwrite c program adding 3 integer numbershow to concat two integers in cexplain embedded c program for addition of two numbersc code add more and more integerhow to add two numbers in chow to use scanf in c with sumsum of 2 numbersum of 2 numbers using function in cadding three numbers in c2 number sum in chow to append two numbers in cfunction to add the two numbers in cadd two numbers cconcatenation of two numbers in cadding 2 numbers in center two numbers in cfind the sum of all multiples of n below mhow to add two number in csum of two numbers using function in chow to find the sum between two numbersadd 2 num 2c c programhow to add two number in c programing languagesum of 2 variables in cmerge 2 values in cc sum of 2 numberaddition of two numbers in cc program sum of two numbersadd 2 digit sum in call the numbers that can be made by sum of two numbers any number of timesif two arrays are given find the sum how to find sum of all numbers between 2 numbershow to find the sum of all numbers between two valuessum of 2 numbersfor example find two sumcombine two numerical values in cformula of sum 28xy 29 in c programmingsum three number in c with one variableadding two integers in chow to find the sum of two numberswrite c program two numbers directly printadding integers and double in cadd two num cadd two numbers using function in cadding 3 numbers in cappend two numbers in cfunction code that add 2 numbers in ctwo number sumc program add two numbersadditng two numbers in ctwo number sum in cprogram of adding two numbersc program to add two numbersc program to add three numbersadd 2 to number in cadding chow to take input and add two numbers in cadd 2 variables in cc program that adds two numbersfunction to add two numbers in chow to double a number upto n in cadd one to number in cc add two doublec function to add numbersfind sum of two numbershow to code sum of 2 numbers using cprogram to calculate sum of 2 numbers in cput two numbers together in ctwo sum in geeewrite a program to find sum of two numbersadd two no in csum of 2 numbers in cc program two int addsum of two numbers in chow to add one integer cfinding two sumif the sum of two number is 27sum of two large numbers represented as strings cprogram in c language for addition of two numberssum of two numbers in c programreturn the sum of two numbershow to add 2 numbers in cc code to add two numberssum of two numbers c programadding integers and double in c