Computer Science, asked by vs3221836, 1 month ago

Q3. Programming:-.
(6)
(a) Make a class and send hello to your friend.

(b) Write your school name 100 times using for loop.​

Answers

Answered by SabrinaHaque
1

Answer:

(a)

#include <stdio.h>

int main() {

printf("Hello, Friends!");

return 0;

}

(b)

#include <stdio.h>

int main()

{

int i;

char str[50];

printf("Enter Your School Name - ");

scanf("%s",str);

for (i=1;i<=100;i++)

{

printf("%s\t",str);

}

return 0;

}

Similar questions