JASTEJ SANDHU - PROGRAMMING 11
Home
Introduction
Get to know me!
Peanut Butter and Jelly
Theory
Building (rectangle)
Career Exploration
C++ Programs
Grades Calculator Program
Temperature Conversion Program
Elf Name Generator Program
For Loops 1
For Loops 2
Probability Assignment - Jastej
Final Project - NumGuesser - Jastej
Pixel Pad Summary
Play my Game!
Tynker Summaries
Tynker Spider Summaries
Tynker Lesson 400 Summaries
Home
Introduction
Get to know me!
Peanut Butter and Jelly
Theory
Building (rectangle)
Career Exploration
C++ Programs
Grades Calculator Program
Temperature Conversion Program
Elf Name Generator Program
For Loops 1
For Loops 2
Probability Assignment - Jastej
Final Project - NumGuesser - Jastej
Pixel Pad Summary
Play my Game!
Tynker Summaries
Tynker Spider Summaries
Tynker Lesson 400 Summaries
Search
Link:
https://replit.com/@Jastej/Jastej-For-loops?v=1
jastej-for-loops.zip
File Size:
6522 kb
File Type:
zip
Download File
sh -c make -s
./main
Question 1 = 1 - 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
**************************************
Question 2 = 2 - 8
2 3 4 5 6 7 8
**************************************
Question 3 = 50 - 100
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
**************************************
Question 4 = 1 - 75 by 4
1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73
**************************************
Question 5 = 36 - 600 by 15
36 51 66 81 96 111 126 141 156 171 186 201 216 231 246 261 276 291 306 321 336 351 366 381 396 411 426 441 456 471 486 501 516 531 546 561 576 591
**************************************
Counting from -25 to 105 by 7]
-25 -18 -11 -4 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101
**************************************
Counting from -350 to 350 by 8
-350 -342 -334 -326 -318 -310 -302 -294 -286 -278 -270 -262 -254 -246 -238 -230 -222 -214 -206 -198 -190 -182 -174 -166 -158 -150 -142 -134 -126 -118 -110 -102 -94 -86 -78 -70 -62 -54 -46 -38 -30 -22 -14 -6 2 10 18 26 34 42 50 58 66 74 82 90 98 106 114 122 130 138 146 154 162 170 178 186 194 202 210 218 226 234 242 250 258 266 274 282 290 298 306 314 322 330 338 346
**************************************
Counting from 100 to 1 by 1
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
**************************************
Counting from 1000 to 700 by 5
1000 999 998 997 996 995 994 993 992 991 990989 988 987 986 985 984 983 982 981 980 979 978 977 976 975 974 973 972 971 970 969 968 967 966 965 964 963 962 961 960 959 958 957 956 955 954 953 952 951 950 949 948 947 946 945 944 943 942 941 940 939 938 937 936 935 934 933 932 931 930 929 928 927 926 925 924 923 922 921 920 919 918 917 916 915 914 913 912 911 910 909 908 907 906 905 904 903 902 901 900 899 898 897 896 895 894 893 892 891 890 889 888 887 886 885 884 883 882 881 880 879 878 877 876 875 874 873 872 871 870 869 868 867 866 865 864 863 862 861 860 859 858 857 856 855 854 853 852 851 850 849 848 847 846 845 844 843 842 841 840 839 838 837 836 835 834 833 832 831 830 829 828 827 826 825 824 823 822 821 820 819 818 817 816 815 814 813 812 811 810 809 808 807 806 805 804 803 802 801 800 799 798 797 796 795 794 793 792 791 790 789 788 787 786 785 784 783 782 781 780 779 778 777 776 775 774 773 772 771 770 769 768 767 766 765 764 763 762 761 760 759 758 757 756 755 754 753 752 751 750 749 748 747 746 745 744 743 742 741 740 739 738 737 736 735 734 733 732 731 730 729 728 727 726 725 724 723 722 721 720 719 718 717 716 715 714 713 712 711 710 709 708 707 706 705 704 703 702 701 700
**************************************
Counting from 180 to -50 by 6
180 174 168 162 156 150 144 138 132 126 120 114 108 102 96 90 84 78 72 66 60 54 48 42 36 30 24 18 12 6 0 -6 -12 -18 -24 -30 -36 -42 -48
**************************************
Counting from -30 to -600 by 25
-30 -55 -80 -105 -130 -155 -180 -205 -230 -255 -280 -305 -330 -355 -380 -405 -430 -455 -480 -505 -530 -555 -580
**************************************
The even numbers between 1 and 200 including 200
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200
**************************************
The odd numbers between 200 and 300 inclusive
201 203 205 207 209 211 213 215 217 219 221 223 225 227 229 231 233 235 237 239 241 243 245 247 249 251 253 255 257 259 261 263 265 267 269 271 273 275 277 279 281 283 285 287 289 291 293 295 297 299
**************************************
The numbers between 1 and 400 that are divisible by 7
7 14 21 28 35 42 49 56 63 70 77 84 91 98 105 112 119 126 133 140 147 154 161 168 175 182 189 196 203 210 217 224 231 238 245 252 259 266 273 280 287 294 301 308 315 322 329 336 343 350 357 364 371 378 385 392 399
**************************************
The numbers between 1 and 500 that are equally divisible by both 6 and 4
4 6 8 12 16 18 20 24 28 30 32 36 40 42 44 48 52 54 56 60 64 66 68 72 76 78 80 84 88 90 92 96 100 102 104 108 112 114 116 120 124 126 128 132 136 138 140 144 148 150 152 156 160 162 164 168 172 174 176 180 184 186 188 192 196 198 200 204 208 210 212 216 220 222 224 228 232 234 236 240 244 246 248 252 256 258 260 264 268 270 272 276 280 282 284 288 292 294 296 300 304 306 308 312 316 318 320 324 328 330 332 336 340 342 344 348 352 354 356 360 364 366 368 372 376 378 380 384 388 390 392 396 400 402 404 408 412 414 416 420 424 426 428 432 436 438 440 444 448 450 452 456 460 462 464 468 472 474 476 480 484 486 488 492 496 498 500
**************************************
Random Shape
* * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * *
**************************************
Use a loop to create a design using stars (could be a simple triangle or something more complex
💠
💠💠
💠💠💠
💠💠💠💠
💠💠💠💠💠
💠💠💠💠💠💠
💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠💠💠
💠💠💠💠💠💠💠
💠💠💠💠💠
💠💠💠
💠
Home
Introduction
Get to know me!
Peanut Butter and Jelly
Theory
Building (rectangle)
Career Exploration
C++ Programs
Grades Calculator Program
Temperature Conversion Program
Elf Name Generator Program
For Loops 1
For Loops 2
Probability Assignment - Jastej
Final Project - NumGuesser - Jastej
Pixel Pad Summary
Play my Game!
Tynker Summaries
Tynker Spider Summaries
Tynker Lesson 400 Summaries