C Language: The number of output 100~200 that cannot be divisible by 3.

Source: Internet
Author: User

The number of output 100~200 that cannot be divisible by 3.

Solution: Program:

#include <stdio.h>

int main ()

{

int i=0;

printf ("Print a number that cannot be divisible by 3:");

for (i = n; i <=; i++)

{

if (i%3 = = 0)

{

Continue

}

printf ("%d", I);

}

printf ("\ n");

return 0;

}

Results:

The number of prints that cannot be divisible by 3:100 101 103 104 106 107 109 110 112 113 115 116 118 119 121 122 124 125 127 128 130 131 133 134 136 137 139 14 0 142 143 145 146 148 149 151 152 154 155 157 158 160 161 163 164 166 167 169 170 172 173 175 176 178 179 181 182 184 185 187 188 190 191 193 194 196 197 199 200

Please press any key to continue ...


This article is from the "Rock Owl" blog, please be sure to keep this source http://yaoyaolx.blog.51cto.com/10732111/1741567

C Language: The number of output 100~200 that cannot be divisible by 3.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.