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
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
Math,
25 days ago
Physics,
25 days ago
Physics,
1 month ago
Social Sciences,
9 months ago
Science,
9 months ago