Write a program to take the name as input from user and assign different comment to against each user. Use a loop to repeat the above process.
e.g. if user enters a name “XYZ”, you can compare if (name==”XYZ”) // Hello ! How are you // or Have a nice day elseif (name==”ABC”) // Nice to meet you etc. Can anyone help me with this ? It should be in c++
Answers
Answered by
0
Answer:
// C program to illustrate need of loops
#include <stdio.h>
int main()
{
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
printf( "Hello World\n");
return 0;
}
Explanation:
Similar questions
Math,
4 hours ago
CBSE BOARD X,
4 hours ago
English,
7 hours ago
English,
7 months ago
Geography,
7 months ago