How to write c++ programe of these questions
Attachments:
Answers
Answered by
1
Explanation:
5.) #include<stdio.h>
void main()
{
int n;
printf("\n Enter a no:");
scanf("%d",&n);
if(n%5==0)
printf("\n %d is a multiple of 5",n);
else
printf("\n %d is not a multiple of 5",n);
}
6.)
# include<stdio.h>
void main()
{
int marks;
printf("\n Enter the marks");
scanf("%d",&marks);
if (marks>30)
printf("\nResult= p");
else
printf("\nResult= f");
}
Similar questions