+ 2
[DUPLICATE] How old are you?!?...
wtite you adge with your.programming language
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);
}
}
}
+ 24
System.out.println(0/0);
+ 16
18 c++
+ 10
var age = 10
if (age == 10) {
document.write(age);
}
+ 9
console.log((4*4)+++++1);
+ 8
int i=1;
while(i<20)
{
i++;
}
cout<<i<<" years old.";
+ 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.
+ 7
16
+ 6
#include <ostream>
using namespace std;
int main(){
int age = 14;
cout<<age<<endl;
return 0;
}
+ 4
Java
int a;
for(a=1;a<13;a++)
{
a++;
}
System.out.println(a+"years");
+ 4
@TheRedSpy
That should be iostream and not ostream.