jeudi 21 février 2019

How do you compute for the sum of 1-10,21-30,41-50,61-70,81-90?

How do you compute for the sum of 1-10,21-30,41-50,61-70,81-90 by only using for loop and some if else conditions(C++)?

is it alright to use if(num%10==0)

Aucun commentaire:

Enregistrer un commentaire