int main() {
cout << "hello sajjad, ";
cout <<"put in your age...\n";
cin>> a;
if (a==0) { // why would you accept 0 as an age?
cout<< "Sajjad is "; // notice a space is added, makes it look a bit better
b=a/4; // this always assigns b to 0
cout<<b;
cout<<" YEARS OLD!!!"; // another space here
cout<<"HAHAHA!!!";
}
else cout<< "UGLY!HUGLY!FUGLY!"; // ...ok
}
I don't know why when ever I do it it never seems to work. there is always an error.
fatal error LNK1169: one or more multiply defined symbols found
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
usingnamespace std;
int a;
int b;
int main() {
cout << "hello sajjad, ";
cout <<"put in your age...\n";
cin>> a;
if (a==0) { // why would you accept 0 as an age? I was thinking of replacing the variable with something that goes from 0 to infinite or somthing
cout<< "Sajjad is "; // notice a space is added, makes it look a bit better
b=a/4; // this always assigns b to 0
cout<<b;
cout<<" YEARS OLD!!!"; // another space here
cout<<"HAHAHA!!!";
}
else cout<< "UGLY!HUGLY!FUGLY!"; // ...ok
}