Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int age,class,mob;
  6. char a,b;
  7.  
  8. printf("*********Registration Form*********n");
  9.  
  10.  
  11. printf("nName : ");
  12. scanf("%s",&a);
  13.  
  14. printf("Class : ");
  15. scanf("%d",&class);
  16.  
  17. printf("Age : ");
  18. scanf("%d",&age);
  19.  
  20. printf("Mobile No : ");
  21. scanf("%d",&mob);
  22.  
  23. printf("Address : ");
  24. scanf("%s",&b);
  25.  
  26.  
  27. if(age >= 16)
  28. {
  29.  
  30. printf("You are old enough");
  31. }
  32. else
  33. {
  34. printf("You are too young!");
  35.  
  36. }
  37.  
  38.  
  39.  
  40. printf("Your Name is %s",a);
  41. printf("nYou are in Class %d",class);
  42. printf("nYour age is %d",age);
  43. printf("nYour Mobile No is %d",mob);
  44. printf("nYour Address is %s",b);
  45.  
  46. return 0;
  47.  
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement