ᴡʀɪᴛᴇ ᴀ ᴘʀᴏɢʀᴀᴍ ɪɴ ᴄ ʟᴀɴɢᴜᴀɢᴇ, ꜰᴏʀ ᴅɪꜱᴘʟᴀʏɪɴɢ ᴍᴜʟᴛɪᴘʟɪᴄᴀᴛɪᴏɴ ᴏꜰ ᴛʜʀᴇᴇ ɴᴜᴍʙᴇʀꜱ.
Answers
The c language program for multiplication of three numbers →
Let a, b, c are the three integer numbers and take variable "mul" for storing the result.
Then the program -
→ #include<stdio.h>
→ #include<conio.h>
→ void main ()
→ {
→ int a,b,c,mul;
→clrscr();
→ printf("Enter First number =");
→ Scanf("%d",&a);
→ printf("Enter second number =");
→ Scanf("%d",&b);
→ printf("Enter third number =");
→ Scanf("%d",&c);
→ mul = a*b*c;
→ printf("Multiplication=%d",&mul);
→ getch();
→ }
Note ,
- Don't do mistakes of semicolons.
- use star(*) instead of cross sign(×).
- Be careful, we don't use semicolon after void main.
- Write whole program in lower case because c language is case sensitive programming language.
- Don't use Arrow sign (→) while writing code , I just use the arrow for separating the commands.
I hope it will help you :)
The c language program for multiplication of three numbers →
Let a, b, c are the three integer numbers and take variable "mul" for storing the result.
Then the program -
→ #include<stdio.h>
→ #include<conio.h>
→ void main ()
→ {
→ int a,b,c,mul;
→clrscr();
→ printf("Enter First number =");
→ Scanf("%d",&a);
→ printf("Enter second number =");
→ Scanf("%d",&b);
→ printf("Enter third number =");
→ Scanf("%d",&c);
→ mul = a*b*c;
→ printf("Multiplication=%d",&mul);
→ getch();
→ }
Note ,
Don't do mistakes of semicolons.
use star(*) instead of cross sign(×).
Be careful, we don't use semicolon after void main.
Write whole program in lower case because c language is case sensitive programming language.
Don't use Arrow sign (→) while writing code , I just use the arrow for separating the commands.