FANDOM


Dear Readers,

           This page consists of some java programs which helps you to guide towards java platform

[Programs are tested under Eclipse]

1.Q:Write a java program to print prime numbers from 100-200 ?

Solution:

public class primenumbers { public static void main(String[] args) { System.out.println("/* Write a java program to print prime numbers from 100-200 */"); System.out.println("Prime Numbers Between 100 to 200"); for(int i=100;i<=200;i++) { System.out.print(i+"\t"); } } }

Output: /* Write a java program to print prime numbers from 100-200 */ Prime Numbers Between 100 to 200 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200

This article uses material from the Wikipedia article Java Examples, that was deleted or is being discussed for deletion, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Author(s): AllyD Search for "Java Examples" on Google
View Wikipedia's deletion log of "Java Examples"
Wikipedia-logo-v2

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.