Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need it to print the output like: 62 is divisible by 2, 31. Right now is printing 62 is divisible by 2, 31, Please

I need it to print the output like: 62 is divisible by 2, 31. Right now is printing 62 is divisible by 2, 31,

Please do in Cimage text in transcribed

gee int n; 6 #include 7 int main() 8 - 9 10 int i; 11 int i; 12 int k=0; 13 int c=0; 14 15 printf("Enter an integer between 1 and 1000 (inclusive): "); 16 scanf("%d",&n); 17 for(i=1;i ./a. out Enter an integer between 1 and 1000 (inclusive): 162 62 is divisible by 2,31, 62 is not prime. user mimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > gcc |-Wall C3.3.6 usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > ./a. out Enter an integer between 1 and 1000 (inclusive): 162 62 is divisible by 2, .31, . 162 is not prime. usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > gec |-Wall C3.3.c usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > ./a. out Enter an integer between 1 and 1000 (inclusive): 62 62 is divisible by 2, 31, 62 is not prime. usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > gec |-Wall c3.3.0 usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > ./a. out Enter an integer between 1 and 1000 (inclusive): 162 62 is divisible by 2, 31, 162 is not prime. usermimir: -/cpsc_1010_all_sections_spring2021/chapterproject_32 > ; 44

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions