multiplication of two numbers in c
int num1,num2;
printf("%d",num1+num2);int num1,num2;
printf("%d",num1*num2);// 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;
}
Also in C:
- logarithmus c math.h
- time to apply pmfby
- boolean c
- pointer offset notation
- how to print the elements of a linked list in c
- how to mutex lock in c
- gcc on windows
- how to ascii art in c
- Print the number 0 using write()
- atoi
- puts without newline c
- program to concatenate two strings in c
- Docker error Error response from daemon: conflict: unable to remove repository reference
- change plot line color in matplotlib
- how to get the length of a linked list in c
- how to define a enum in c
- c number randomizer
- c program to swap two arrays
- find the largest number in else if javascript
- accessing elements of 1d array using pointers
- connect servo to arduino
- scanf integer
- windeployqt example
- Write a C program to add negative values among N values using 2D array and pointer