Computer Science, asked by wahmed17880, 1 month ago

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 LAVIDIVWAKER
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