addition of two numbers in c
int num1,num2;
printf("%d",num1+num2);
addition of two numbers in c
int num1,num2;
printf("%d",num1+num2);
multiplication of two numbers in c
int num1,num2;
printf("%d",num1*num2);
C multiply
// Program to multiply 2 numbers from user inputs
#include <stdio.h>
int main() {
double a, b, product;
printf("Enter two numbers: ");
scanf("%lf %lf", &a, &b);
// Calculating product
product = a * b;
// Result up to 2 decimal point is displayed using %.2lf
printf("Product = %.2lf", product);
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us