+ 2

[DUPLICATE] How old are you?!?...

wtite you adge with your.programming language

10th Apr 2017, 10:53 PM
ismail Banouigu
ismail Banouigu - avatar
13 Answers
+ 35
https://code.sololearn.com/cl8mYQAEQSFm/?ref=app public class Program { public static void main(String[] args) { for(int age = 1; age < 30; age++){ System.out.println(age); } } }
11th Apr 2017, 2:01 AM
ɔ͒̋ᴉ̼̻̤͙͇͈̓ͧʇ̋̌̃ḓ̣ͯʎ̱̝̗̗̺̐͊ɹʞ͇̮́̍̾̽̈́̓
ɔ͒̋ᴉ̼̻̤͙͇͈̓ͧʇ̋̌̃ḓ̣ͯʎ̱̝̗̗̺̐͊ɹʞ͇̮́̍̾̽̈́̓ - avatar
+ 24
System.out.println(0/0);
10th Apr 2017, 11:33 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 16
18 c++
11th Apr 2017, 2:33 AM
Saja Husam
Saja Husam - avatar
11th Apr 2017, 11:26 AM
Saja Husam
Saja Husam - avatar
+ 10
var age = 10 if (age == 10) { document.write(age); }
13th Apr 2017, 9:07 AM
Art456
Art456 - avatar
+ 9
console.log((4*4)+++++1);
11th Apr 2017, 1:39 AM
Ronit Kumar
Ronit Kumar - avatar
+ 8
int i=1; while(i<20) { i++; } cout<<i<<" years old.";
11th Apr 2017, 5:00 AM
Sachin Artani
Sachin Artani - avatar
+ 8
@ArtemisAthena456 Your if statement is wrong. You need to use the equivalence evaluator syntax (==) not the assignment operator syntax (=) You just forgot an = sign.
13th Apr 2017, 6:53 PM
J.G.
J.G. - avatar
+ 7
16
10th Apr 2017, 10:54 PM
Retul
Retul - avatar
+ 6
#include <ostream> using namespace std; int main(){ int age = 14; cout<<age<<endl; return 0; }
11th Apr 2017, 4:35 AM
DeleteThisAccount
+ 4
Java int a; for(a=1;a<13;a++) { a++; } System.out.println(a+"years");
1st May 2017, 5:36 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 4
@TheRedSpy That should be iostream and not ostream.
1st May 2017, 5:38 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar