NedyalkoKikov

NumbersTo1000 == 7

Apr 29th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace NumbersTo1000
  8. {
  9. class NumbersTo1000
  10. {
  11. static void Main(string[] args)
  12. {
  13. int a = 1000;
  14. for (int i = 0; i <= a; i++)
  15. {
  16. if(i % 10 == 7)
  17. {
  18. Console.Write(i + ", ");
  19. }
  20. }
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment