Costea

Prayer in C

Mar 21st, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. const char* pronoun(int number,bool plural)
  5. {
  6.     if(number==2) return "you";
  7.     if(!plural) {if(number==1) return "i";}
  8.     else if(number==1) return "we";
  9.     return "they";
  10. }
  11.  
  12. void dontthink(char who[100],char auxiliaryVerb[105],bool forgiveNotBelieve)
  13. {
  14.     printf(", don't think %s %s %s you.\n",who,auxiliaryVerb,forgiveNotBelieve?"forgive":"believe");
  15. }
  16.  
  17. int main()
  18. {
  19.     int i,j;
  20.     for(i=1;i<=2;i++)
  21.     {
  22.         for(j=1;j<=2;j++)
  23.         {
  24.             printf("Yah, you never said a word, you didn't send me no letter"); dontthink(pronoun(1,false),"could",true);
  25.             printf("See, our world is slowly dying and i'm wasting no more time"); dontthink(pronoun(1,false),"could",false);
  26.         }
  27.         printf("Yah, our hands will get more wrinkled and our hair will be grey"); dontthink(pronoun(1,false),"could",true);
  28.         printf("And see, the children are starving and their houses were destroyed"); dontthink(pronoun(3,true),"could",true);
  29.         printf("Hey, when seas will cover lands and when men will be no more"); dontthink(pronoun(2,false),"can",true);
  30.         printf("Yah, when there'll just be silence and when life will be over"); dontthink(pronoun(2,false),"will",true);
  31.     }
  32.     return 0;
  33. }
Add Comment
Please, Sign In to add comment