- 4

What is the symbol for multiplication in c

symbol for multiplication in c

2nd Mar 2021, 11:09 AM
Kelvin Asare
Kelvin Asare - avatar
11 Réponses
+ 4
*
2nd Mar 2021, 11:12 AM
visph
visph - avatar
+ 4
error is at printf line... you should use %d instead of $d as formatter ^^
2nd Mar 2021, 11:17 AM
visph
visph - avatar
+ 2
provide your full code ^^
2nd Mar 2021, 11:13 AM
visph
visph - avatar
+ 1
sure it works ;P you can upvote, and mark best answer if you want :)
2nd Mar 2021, 11:23 AM
visph
visph - avatar
0
Yes but when I use it it gives me error
2nd Mar 2021, 11:13 AM
Kelvin Asare
Kelvin Asare - avatar
0
#include <stdio.h> int main() { int a; int b; int c; a=20; b=40; c=a*b; printf ("c = $d", c); return 0; }
2nd Mar 2021, 11:14 AM
Kelvin Asare
Kelvin Asare - avatar
0
Kk let me check
2nd Mar 2021, 11:20 AM
Kelvin Asare
Kelvin Asare - avatar
0
Yh it is working now
2nd Mar 2021, 11:21 AM
Kelvin Asare
Kelvin Asare - avatar
0
Thanks
2nd Mar 2021, 11:21 AM
Kelvin Asare
Kelvin Asare - avatar
0
Kk
2nd Mar 2021, 11:24 AM
Kelvin Asare
Kelvin Asare - avatar