Anasayfa » c for loops for döngüsü örnekler

c for loops for döngüsü örnekler etiketindeki yazılar

C / C++ »

[7 May 2011 | 2 Yorum | 2.103 views ]
C / C++ Courses ? 11 (Negation Operator and For Loops)

The Negation Operator (! ? NOT)
if(! (x>10) )
printf(?%d?,x); //it will print ?3?.
printf(?hey?); //it will print ?hey?.
printf(?%d?,x); //it will print nothing.


3 Steps Which We Should Follow

1- Declare the input and use scanf initialized before while
2- Use the input in condition while and compare it with sentinal value
3- Change the input using scanf before the end of the loop

Devamını Oku »