+ 4

How can i devide a variable (in which i have a input converted to integer) by a number????

Code input: a numeric value Output: a value that is equal to the half of the input. And i want to store that in a variable. Then print.

24th Jul 2020, 3:01 PM
Md Arif Shahriyar Sohan
Md Arif Shahriyar Sohan - avatar
5 odpowiedzi
+ 6
Sohan , can you please show us your attempt in code that you have done so far for this task? Please also provide us with a sample for input and output. Thanks!
24th Jul 2020, 3:21 PM
Lothar
Lothar - avatar
+ 6
Please show us your attempt first. Thanks!
25th Jul 2020, 8:50 AM
Lothar
Lothar - avatar
24th Jul 2020, 3:04 PM
Arsenic
Arsenic - avatar
+ 3
Havent get my answer yet.......
25th Jul 2020, 1:15 AM
Md Arif Shahriyar Sohan
Md Arif Shahriyar Sohan - avatar
+ 2
you mean a=int(input()) b=a/4 ? Or can you show what you are trying to do
24th Jul 2020, 3:05 PM
Abhay
Abhay - avatar