Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

sa 11 cs chapter 8

11. Write a program to take N (N > 20) as an input from the user. Print numbers from 11 to N. When the number is a multiple of 3, print “Tipsy”, when it is a multiple of 7, print “Topsy”. When it is a multiple of both, print “TipsyTopsy”.

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

11. Write a program to take N (N > 20) as an input from the user. Print numbers from 11 to N. When the number is a multiple of 3, print “Tipsy”, when it is a multiple of 7, print “Topsy”. When it is a multiple of both, print “TipsyTopsy”. Read More »

10. Write a program to take an integer a as an input and check whether it ends with 4 or 8. If it ends with 4 print “ends with 4”, if it ends with 8, print “ends with 8”, otherwise print “ends with neither”.

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

a = input(‘Enter a number : ‘) if a[-1] == ‘4’: print(‘ends with 4’) elif a[-1] == 8: print(‘ends with 8’) else: print(‘ends with neither’)

10. Write a program to take an integer a as an input and check whether it ends with 4 or 8. If it ends with 4 print “ends with 4”, if it ends with 8, print “ends with 8”, otherwise print “ends with neither”. Read More »

Post pagination
← Previous 1 … 25 26 27 … 38 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.