C Programming and Technical Programming Output

PRGRAMMING IN C

Read Solution (Total 1)

C Other Question

#include

int main()
{
char str[20]="hello";
char * const p=str;
*p='M';
printf("%sn",str);
return 0;
}
Write a program to print the nth prime number after a given number m.

Example 1: Given prime number m=3 and n=5. The program should print the 5th prime number afer 3
Given input
3
5
Expected output
17