Page not loading? Try clicking here.
Placeholder

#185

String 1 - Formative Assessment 4 1s - MB

Problems

Write a program that receives a word and a single character as input, and finds the position of the character in the word.

The position of the first character in the word is 0. If the character appears multiple times, print the position of its first occurrence.

If the character is not found, print "No". Case is sensitive, and the word has at most 100 characters.


Example

Jungol.co.kr o
4

Source

자기주도C언어프로그래밍

You must sign in to write code.