Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <string.h>
- using namespace std;
- int age;
- string name;
- int dumb = 0;
- int contador = 1;
- string question1, question2, question3, question4, question5, question6, question7;
- int main(){
- printf("What's your age?\n");
- cin>>age;
- if (age >= 0 || age <= 14);{
- dumb = dumb + 5;}
- if (age >= 15 || age <= 24);{
- dumb = dumb + 3;}
- if (age >= 25 || age <= 49);{
- dumb = dumb + 1;}
- if (age >= 50 || age <= 98);{
- dumb = dumb + 5;}
- printf("What's your name?\n");
- cin>>name;
- printf("The test will now begin... Only answer the questions with YES or NO.\n");
- contador++;
- if (contador == 5);{
- printf("\nThere's no reason to lie in the following questions... the result will be only yours. Be honest.\n");}
- printf("\nHave you complete Elementary School?");
- cin>>question1;
- if((strcmp (squestion1,"Yes") == 1);{
- dumb = dumb + 0;}
- printf("Your dumb score is: " dumb);
- return 0;
- }
Add Comment
Please, Sign In to add comment