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;
}

Comments

Popular posts from this blog

How to make basic TicTacToe game in C

How to make Simple Calculator in C