0

write. c program that uses scanf function to read a float valriable into the variable called discount_rate

Some 1 help me with the answer of that question

14th Mar 2022, 2:29 PM
Izo Kaeyz
6 Respostas
+ 2
Izo Kaeyz You have program skeleton already. Others also gave you hints. 1. Try to define variable: float discount_rate; 2. Then use scanf() function to read user input into variable: scanf("%f, & discount_rate); 3. Then try to print variable with printf() function Come on, try it and show what you did. Don't be afraid of mistakes, writing code is fun 😉
16th Mar 2022, 5:07 PM
Ilyas Bakirov
Ilyas Bakirov - avatar
+ 1
Public want to see your code.😤😤
14th Mar 2022, 2:37 PM
NonStop CODING
NonStop CODING - avatar
+ 1
Hint: use format specifier of floats and ampersand with scanf function.
14th Mar 2022, 2:41 PM
NonStop CODING
NonStop CODING - avatar
0
Am In Programing C....
14th Mar 2022, 2:36 PM
Izo Kaeyz
0
#include <studio.h> int main() { } It starts like that
14th Mar 2022, 2:37 PM
Izo Kaeyz
0
I don't have a code that's y am asking for ur help mahn
14th Mar 2022, 2:39 PM
Izo Kaeyz