Edit
Reply




Edit

  1. Home
  • Add an Event
  • Add an Interview Experience
  • Add a Discussion
Add
5 Thanks 2 Comments
kritika shakya 1 hour ago
The paper was good nd of moderate level. If prepared well then can easily be cracked.

i want to know what is wrong in this program? #include #include // Main function int main() { int i,flag = 0; int n; scanf("%d",&n); for(i=2;i <=sqrt(n);i++){ if(n % i==0){ flag=1; break; } } if(flag==0){ printf("Square Root of given prime number %d is = %.2f", n,sqrt(n)); } if(flag==1){ printf("%d is a not prime number",n); } return 0; }

3 Comments
Ashwini S 5 hours ago
invalid header files, incorrect for loop syntax, error in%.2f

i want to know what is wrong in this program? #include #include // Main function int main() { int i,flag = 0; int n; scanf("%d",&n); for(i=2;i <=sqrt(n);i++){ if(n % i==0){ flag=1; break; } } if(flag==0){ printf("Square Root of given prime number %d is = %.2f", n,sqrt(n)); } if(flag==1){ printf("%d is a not prime number",n); } return 0; }

1 Thanks
Hari Haran 7 hours ago

I haven't completed the TCS mock test and now I don't have questions too to solve . kindly send all questions or allow to reattempt@ Geeta mam.

if any one have paid tcs material please send me on email id:pandeyyogesh2002@gmail.com

Open in App