Skip to content
Permalink
48105cbedb
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (30 sloc) 677 Bytes
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
/*int main()
{
double num1;
double num2;
printf("Enter first number: ");
scanf("%lf", &num1);
printf("Enter second number: ");
scanf("%lf", &num2);
printf("Answer is %f", num1 + num2);
return 0;
}*/
int main()
{
char color[20];
char pluralNoun[20];
char celebrityF[20];
char celebrityL[20];
printf("Enter a color: ");
scanf("%s", &color);
printf("Enter a plural noun: ");
scanf("%s", &pluralNoun);
printf("Enter a celebrity: ");
scanf("%s%s", celebrityF, celebrityL);
printf("Roses are %s,\n", color);
printf("%s are blue,\n", pluralNoun);
printf("I love %s %s.", celebrityF, celebrityL);
}