Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Project licenced to TheMartes
- * @ hello@themartes.com
- * DateTime:
- * 6.18.2018
- */
- #include <stdio.h>
- int main() {
- int gimmeNumba, countedNumba = 0;
- printf("Gimme a number\n");
- scanf("%d", &gimmeNumba);
- if (gimmeNumba <= 0) {
- printf("Hey, bang me so hard");
- } else {
- for (int i = 0; i <= gimmeNumba; ++i) {
- countedNumba = countedNumba + i;
- }
- printf("Your number is %d", countedNumba);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement