Please help write in C language Given a number m print the f
Please help write in C language
Given a number m, print the following text m times: Important Message Needs to Repeated Many Times.
There should be a new line between two consecutive prints.
Solution
#include<stdio.h>/*This is the header file(Standard Input Output) to use the functions printf() and scanf() */
 #include<conio.h>/*This is the header file (Console input output) to use the functions getch() and clrscr()*/
 void main() /* It is the entry point of the program means program execution starts from here.*/
 {
 int m,i;/* we are taking two variable m and i*/
 clrscr();/* It is the clearscreen function to clear the console.*/
 printf(\"Please enter the number \");/*printf() function is used to print the message on console*/
 scanf(\"%d\",&m); /*The program will read in an integer value that the user enters on the keyboard (%d is for integers) */
 for(i=1;i<=m;i++)/* for loop to repeat the message for m numbers of times*/
 {
 printf(\"The Message \");/* This message prints m number of times, you can also change this message*/
 printf(\"\ \");/*Print the new line Character to print the message into new line everytime*/
}
 getch();/*To old the output screen until you press key from your keyboard*/
 }
/* In for loop we are using the variable i as counter, It checks the value entered by the user everytime until the condition is true.The signature of for loop is for(initialization,Condition, Increament/Decreament)
*/

