c programing help

0 shailesh kumar verma · October 26, 2015
error comes out in line 16 please help in c lang.

#include <stdio.h>
#include <stdlib.h>

main()
{
    int i;

    printf("ether 1 or 2");
    scanf ("%d",&i);
    if(i==1)
     printf("you would go to heaven !");
    else{
        if(i==2)
            printf("Hell was created with you in mind");
        else
            print("How about mother earth !");
        }

}

Post a Reply

Replies

Oldest  Newest  Rating
+1 K D · October 27, 2015
Did you figure it out?
Well if not you are missing the f in printf.
0 Nathan T · October 28, 2015
let me take a look at this...
0 Nathan T · October 28, 2015
i found it. you wrote "print" instead of printf. :) happy programming
  • 1

C++

107,326 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator