Name Age program in C
#include<stdio.h>
#include<windows.h>
int main()
{
SetConsoleTitle("Name and Age - by Zahid Wadiwale");
int a;
char ar[50];
printf("enter name \n");
scanf("%[^\n]",&ar);
printf("enter age \n");
scanf("%d",&a);
printf("your name is %s and age is %d \n",ar,a);
return 0;
}
#include<windows.h>
int main()
{
SetConsoleTitle("Name and Age - by Zahid Wadiwale");
int a;
char ar[50];
printf("enter name \n");
scanf("%[^\n]",&ar);
printf("enter age \n");
scanf("%d",&a);
printf("your name is %s and age is %d \n",ar,a);
return 0;
}
Comments
Post a Comment