Skip to content

Instantly share code, notes, and snippets.

@ragmha
Created September 2, 2014 14:55
Show Gist options
  • Save ragmha/e7667d38e3abc4bca857 to your computer and use it in GitHub Desktop.
Save ragmha/e7667d38e3abc4bca857 to your computer and use it in GitHub Desktop.
C Prog T-11
#include<stdio.h>
#include <stdlib.h>
#define _CRT_SECURE_NO_WARNINGS
int main()
{
char firstName[20];
char crush[20];
int numberofBabies;
printf("what is your name? \n");
scanf_s("%s", firstName, 20);
printf("Who you are going to marry? \n");
scanf_s("%s", crush,20);
printf("How many kids will you have ? \n");
scanf_s("%d", &numberofBabies);
printf("%s and %s are in love and will have %d babies", firstName, crush, numberofBabies);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment