#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
int Result;
printf("enter the value of a:");
scanf("%d", &a);
printf("enter the value of b");
scanf("%d", &b);
printf("enter the value of c");
scanf("%d", &c);
Result=a*b*c;
printf("%d", Result);
getch();
}
Chat with our AI personalities
Sure, darling. Here's a simple C program to find the multiplication of three numbers:
#include <stdio.h>
int main() {
int num1, num2, num3;
printf("Enter three numbers: ");
scanf("%d %d %d", &num1, &num2, &num3);
int result = num1 * num2 * num3;
printf("The multiplication of the three numbers is: %d", result);
return 0;
}
Run along now and give it a try!
Here is a simple C program to find the multiplication of three numbers:
#include <stdio.h>
int main() {
int num1, num2, num3, result;
printf("Enter three numbers: ");
scanf("%d %d %d", &num1, &num2, &num3);
result = num1 * num2 * num3;
printf("Multiplication of the three numbers is: %d\n", result);
return 0;
}
This program prompts the user to enter three numbers, multiplies them together, and then prints out the result.
Oh, dude, finding the multiplication of three numbers in C? That's like asking me to spell "banana." Anyway, here's a quick and dirty code for ya:
#include <stdio.h>
int main() {
int num1 = 5, num2 = 7, num3 = 9;
int result = num1 * num2 * num3;
printf("The multiplication of %d, %d, and %d is: %d\n", num1, num2, num3, result);
return 0;
}
There you go, a program that multiplies 5, 7, and 9. Enjoy!
#include
int main()
{
int a,b,c,d;
printf(“\n Enter three numbers to multiple”);
scanf(“%d,%d,%d”,&a,&b,&c);
d=abc;
printf(“\n Result=%d”,d);
return 0;
}
simply enter three nos. lyk a b and c and use the code a*b*c and print the result!!
Printf("/n enter three numbers to multiply");
Scanf("%d,%d,%d,"&b,&b,&c);d=abc
Printf("/nresult=%d,"d);
Return o;
}}
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
(defun max3 (a b c) (cond ((> a b) (cond ((> a c) a) (t c))) ((> b c) b) (t c) ) )
You write it exactly the same as you would write it in any other verions of C++, by taking user input to determine the three sides of your triangle. In other words, input three real numbers. What you do with those three numbers is entirely up to you, but presumably you'd want to calculate the angles of a triangle given the length of its three sides. For that you would need to use the cosine rule which states that for any triangle with angles A, B and C whose opposing sides are a, b and c respectively, cos A = (b2 + c2 - a2)/2bc and cos B = (c2 + a2 - b2)/2ca. Knowing two angles, A and B, you can easily work out that angle C must be 180 - (A + B).
start input A & B if A>B print A is greatest if B>A print B is greatest stop james ola writes.....SOT.
create a program that iterates until it finds a perfect number, then store that perfect number into an array. Continue iterating until you find three more. Then, you have an array of four perfect numbers.