Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int age,class,mob;
- char a,b;
- printf("*********Registration Form*********n");
- printf("nName : ");
- scanf("%s",&a);
- printf("Class : ");
- scanf("%d",&class);
- printf("Age : ");
- scanf("%d",&age);
- printf("Mobile No : ");
- scanf("%d",&mob);
- printf("Address : ");
- scanf("%s",&b);
- if(age >= 16)
- {
- printf("You are old enough");
- }
- else
- {
- printf("You are too young!");
- }
- printf("Your Name is %s",a);
- printf("nYou are in Class %d",class);
- printf("nYour age is %d",age);
- printf("nYour Mobile No is %d",mob);
- printf("nYour Address is %s",b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement