Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I fix this program. The output is not coming out correct and it is coming out very messy instead of one offset coming

How do I fix this program. The output is not coming out correct and it is coming out very messy instead of one offset coming out on each line. I have attatched my code including the output. This program is in C. Thank you for your help. Please tell me exactly how to fix the issue as well. image text in transcribedimage text in transcribedimage text in transcribed

1 2 #include #include 4 int pos (char a, char key[], int len) { 5 int i; if (key[i]-a) return i; 7 10 12 13 1 int main() 14 15 16 17 18 19 char key[]"hXTFexn39AJ6cmCYgktNuUwBdlKL04R1DSQrH y5q8VpjIZMGivEfasowob72zP"; int len -strlen (key); int i, idx, j; char chiper[] - "qf5wlpIe760jTmr eKLbKVzmIcCniJofnBVWHlq2hPRDZXuxclu8se"; 21 printf("offset %d ; Result : ", i); 23 24 25 26 27 for (j e; j Options->Debugging->Automatically close the conso le when debugging stop:s Press any key to close this window

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

Students also viewed these Databases questions