What is difference between add and store?

78 views
Skip to first unread message

Vishal Shakya

unread,
Oct 8, 2020, 11:20:20 AM10/8/20
to Discussion forum for Computational Thinking
How saying " Add Total bill amount in variable sum" is different from saying " Store Total bill amount in variable sum"?

Prince bhalani

unread,
Oct 8, 2020, 12:12:44 PM10/8/20
to Discussion forum for Computational Thinking, Vishal Shakya
"Add Total bill amount in variable sum" - In this statement you're adding the value every time in the variable sum
"Store Total bill amount in variable sum" - In this statement you're just storing the value in the variable sum not performing any kind of addition as per the algorithm requirement

Vishal Shakya

unread,
Oct 8, 2020, 12:33:18 PM10/8/20
to Prince bhalani, Discussion forum for Computational Thinking
Thank you all. Really appreciate it.

Computational Thinking Support 1

unread,
Oct 8, 2020, 2:47:11 PM10/8/20
to Vishal Shakya, Prince bhalani, Discussion forum for Computational Thinking
What princebh...@gmail.com said is correct.


--
You received this message because you are subscribed to the Google Groups "Discussion forum for Computational Thinking" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs1001-discus...@nptel.iitm.ac.in.
To view this discussion on the web visit https://groups.google.com/a/nptel.iitm.ac.in/d/msgid/cs1001-discuss/CAN8YnUD0wSJZOeHU5UzwfBKPr04h4EX0VVwQONQ9VTrvX6RFLg%40mail.gmail.com.


--
Thanks & Regards,
Omkar Joshi
Course Instructor (Computational Thinking)
Online Degree Programme
IIT Madras
Reply all
Reply to author
Forward
0 new messages